var/cache/dev/srcDevDebugProjectContainerUrlMatcher.php line 243

Open in your IDE?
  1. <?php
  2. use Symfony\Component\Routing\Exception\MethodNotAllowedException;
  3. use Symfony\Component\Routing\Exception\ResourceNotFoundException;
  4. use Symfony\Component\Routing\RequestContext;
  5. /**
  6.  * This class has been auto-generated
  7.  * by the Symfony Routing Component.
  8.  */
  9. class srcDevDebugProjectContainerUrlMatcher extends Symfony\Bundle\FrameworkBundle\Routing\RedirectableUrlMatcher
  10. {
  11.     public function __construct(RequestContext $context)
  12.     {
  13.         $this->context $context;
  14.     }
  15.     public function match($rawPathinfo)
  16.     {
  17.         $allow = [];
  18.         $pathinfo rawurldecode($rawPathinfo);
  19.         $trimmedPathinfo rtrim($pathinfo'/');
  20.         $context $this->context;
  21.         $request $this->request ?: $this->createRequest($pathinfo);
  22.         $requestMethod $canonicalMethod $context->getMethod();
  23.         if ('HEAD' === $requestMethod) {
  24.             $canonicalMethod 'GET';
  25.         }
  26.         if (=== strpos($pathinfo'/_')) {
  27.             // _twig_error_test
  28.             if (=== strpos($pathinfo'/_error') && preg_match('#^/_error/(?P<code>\\d+)(?:\\.(?P<_format>[^/]++))?$#sD'$pathinfo$matches)) {
  29.                 return $this->mergeDefaults(array_replace($matches, ['_route' => '_twig_error_test']), array (  '_controller' => 'twig.controller.preview_error:previewErrorPageAction',  '_format' => 'html',));
  30.             }
  31.             // _wdt
  32.             if (=== strpos($pathinfo'/_wdt') && preg_match('#^/_wdt/(?P<token>[^/]++)$#sD'$pathinfo$matches)) {
  33.                 return $this->mergeDefaults(array_replace($matches, ['_route' => '_wdt']), array (  '_controller' => 'web_profiler.controller.profiler:toolbarAction',));
  34.             }
  35.             if (=== strpos($pathinfo'/_profiler')) {
  36.                 // _profiler_home
  37.                 if ('/_profiler' === $trimmedPathinfo) {
  38.                     $ret = array (  '_controller' => 'web_profiler.controller.profiler:homeAction',  '_route' => '_profiler_home',);
  39.                     if ('/' === substr($pathinfo, -1)) {
  40.                         // no-op
  41.                     } elseif ('GET' !== $canonicalMethod) {
  42.                         goto not__profiler_home;
  43.                     } else {
  44.                         return array_replace($ret$this->redirect($rawPathinfo.'/''_profiler_home'));
  45.                     }
  46.                     return $ret;
  47.                 }
  48.                 not__profiler_home:
  49.                 if (=== strpos($pathinfo'/_profiler/search')) {
  50.                     // _profiler_search
  51.                     if ('/_profiler/search' === $pathinfo) {
  52.                         return array (  '_controller' => 'web_profiler.controller.profiler:searchAction',  '_route' => '_profiler_search',);
  53.                     }
  54.                     // _profiler_search_bar
  55.                     if ('/_profiler/search_bar' === $pathinfo) {
  56.                         return array (  '_controller' => 'web_profiler.controller.profiler:searchBarAction',  '_route' => '_profiler_search_bar',);
  57.                     }
  58.                 }
  59.                 // _profiler_phpinfo
  60.                 if ('/_profiler/phpinfo' === $pathinfo) {
  61.                     return array (  '_controller' => 'web_profiler.controller.profiler:phpinfoAction',  '_route' => '_profiler_phpinfo',);
  62.                 }
  63.                 // _profiler_search_results
  64.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/search/results$#sD'$pathinfo$matches)) {
  65.                     return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler_search_results']), array (  '_controller' => 'web_profiler.controller.profiler:searchResultsAction',));
  66.                 }
  67.                 // _profiler_open_file
  68.                 if ('/_profiler/open' === $pathinfo) {
  69.                     return array (  '_controller' => 'web_profiler.controller.profiler:openAction',  '_route' => '_profiler_open_file',);
  70.                 }
  71.                 // _profiler
  72.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)$#sD'$pathinfo$matches)) {
  73.                     return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler']), array (  '_controller' => 'web_profiler.controller.profiler:panelAction',));
  74.                 }
  75.                 // _profiler_router
  76.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/router$#sD'$pathinfo$matches)) {
  77.                     return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler_router']), array (  '_controller' => 'web_profiler.controller.router:panelAction',));
  78.                 }
  79.                 // _profiler_exception
  80.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception$#sD'$pathinfo$matches)) {
  81.                     return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler_exception']), array (  '_controller' => 'web_profiler.controller.exception:showAction',));
  82.                 }
  83.                 // _profiler_exception_css
  84.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception\\.css$#sD'$pathinfo$matches)) {
  85.                     return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler_exception_css']), array (  '_controller' => 'web_profiler.controller.exception:cssAction',));
  86.                 }
  87.             }
  88.         }
  89.         elseif (=== strpos($pathinfo'/admin')) {
  90.             if (=== strpos($pathinfo'/admin/actualities')) {
  91.                 // admin_actualities_index
  92.                 if ('/admin/actualities' === $pathinfo) {
  93.                     return array (  '_controller' => 'App\\Controller\\Admin\\ActualitiesController::indexAction',  '_route' => 'admin_actualities_index',);
  94.                 }
  95.                 // admin_actualities_add
  96.                 if ('/admin/actualities/add' === $pathinfo) {
  97.                     return array (  '_controller' => 'App\\Controller\\Admin\\ActualitiesController::addAction',  '_route' => 'admin_actualities_add',);
  98.                 }
  99.                 // admin_actualities_edit
  100.                 if (=== strpos($pathinfo'/admin/actualities/edit') && preg_match('#^/admin/actualities/edit/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  101.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_actualities_edit']), array (  '_controller' => 'App\\Controller\\Admin\\ActualitiesController::editAction',));
  102.                 }
  103.                 // admin_actualities_delete
  104.                 if (=== strpos($pathinfo'/admin/actualities/delete') && preg_match('#^/admin/actualities/delete/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  105.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_actualities_delete']), array (  '_controller' => 'App\\Controller\\Admin\\ActualitiesController::deleteAction',));
  106.                 }
  107.                 // admin_actualities_delete_image
  108.                 if (preg_match('#^/admin/actualities/(?P<id>[^/]++)/delete_image/(?P<imageId>[^/]++)$#sD'$pathinfo$matches)) {
  109.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_actualities_delete_image']), array (  '_controller' => 'App\\Controller\\Admin\\ActualitiesController::deleteImageAction',));
  110.                 }
  111.             }
  112.             // admin_homepage
  113.             if ('/admin' === $pathinfo) {
  114.                 return array (  '_controller' => 'App\\Controller\\Admin\\DefaultController::indexAction',  '_route' => 'admin_homepage',);
  115.             }
  116.             // admin_login
  117.             if ('/admin/login' === $pathinfo) {
  118.                 return array (  '_controller' => 'App\\Controller\\Admin\\DefaultController::login',  '_route' => 'admin_login',);
  119.             }
  120.             if (=== strpos($pathinfo'/admin/programmes')) {
  121.                 // admin_programmes_index
  122.                 if ('/admin/programmes' === $pathinfo) {
  123.                     return array (  '_controller' => 'App\\Controller\\Admin\\ProgrammesController::indexAction',  '_route' => 'admin_programmes_index',);
  124.                 }
  125.                 // admin_programmes_add
  126.                 if ('/admin/programmes/add' === $pathinfo) {
  127.                     return array (  '_controller' => 'App\\Controller\\Admin\\ProgrammesController::addAction',  '_route' => 'admin_programmes_add',);
  128.                 }
  129.                 // admin_programmes_edit
  130.                 if (=== strpos($pathinfo'/admin/programmes/edit') && preg_match('#^/admin/programmes/edit/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  131.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_programmes_edit']), array (  '_controller' => 'App\\Controller\\Admin\\ProgrammesController::editAction',));
  132.                 }
  133.                 // admin_programmes_delete
  134.                 if (=== strpos($pathinfo'/admin/programmes/delete') && preg_match('#^/admin/programmes/delete/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  135.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_programmes_delete']), array (  '_controller' => 'App\\Controller\\Admin\\ProgrammesController::deleteAction',));
  136.                 }
  137.                 // admin_programmes_delete_image
  138.                 if (preg_match('#^/admin/programmes/(?P<id>[^/]++)/delete_image/(?P<imageId>[^/]++)$#sD'$pathinfo$matches)) {
  139.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_programmes_delete_image']), array (  '_controller' => 'App\\Controller\\Admin\\ProgrammesController::deleteImageAction',));
  140.                 }
  141.             }
  142.         }
  143.         elseif (=== strpos($pathinfo'/api')) {
  144.             // api_get_actualities
  145.             if ('/api/actualities' === $pathinfo) {
  146.                 return array (  '_controller' => 'App\\Controller\\Api\\ActualitiesController::getActualitiesAction',  '_route' => 'api_get_actualities',);
  147.             }
  148.             // api_get_asset_path
  149.             if ('/api/get_asset_path' === $pathinfo) {
  150.                 return array (  '_controller' => 'App\\Controller\\Api\\DefaultController::getAssetsAction',  '_route' => 'api_get_asset_path',);
  151.             }
  152.             // api_send_contact_info
  153.             if ('/api/send_contact_info' === $pathinfo) {
  154.                 return array (  '_controller' => 'App\\Controller\\Api\\DefaultController::contactFormAction',  '_route' => 'api_send_contact_info',);
  155.             }
  156.             // api_get_programmes
  157.             if ('/api/programmes' === $pathinfo) {
  158.                 return array (  '_controller' => 'App\\Controller\\Api\\ProgrammesController::getProgrammesAction',  '_route' => 'api_get_programmes',);
  159.             }
  160.         }
  161.         // homepage
  162.         if ('' === $trimmedPathinfo) {
  163.             $ret = array (  '_controller' => 'App\\Controller\\DefaultController::indexAction',  '_route' => 'homepage',);
  164.             if ('/' === substr($pathinfo, -1)) {
  165.                 // no-op
  166.             } elseif ('GET' !== $canonicalMethod) {
  167.                 goto not_homepage;
  168.             } else {
  169.                 return array_replace($ret$this->redirect($rawPathinfo.'/''homepage'));
  170.             }
  171.             return $ret;
  172.         }
  173.         not_homepage:
  174.         // mentions
  175.         if ('/mentions' === $pathinfo) {
  176.             return array (  '_controller' => 'App\\Controller\\DefaultController::mentionsAction',  '_route' => 'mentions',);
  177.         }
  178.         // testSendEmail
  179.         if ('/klOpdgftJgft' === $pathinfo) {
  180.             return array (  '_controller' => 'App\\Controller\\DefaultController::testEmailAction',  '_route' => 'testSendEmail',);
  181.         }
  182.         // fos_js_routing_js
  183.         if (=== strpos($pathinfo'/js/routing') && preg_match('#^/js/routing(?:\\.(?P<_format>js|json))?$#sD'$pathinfo$matches)) {
  184.             $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'fos_js_routing_js']), array (  '_controller' => 'fos_js_routing.controller::indexAction',  '_format' => 'js',));
  185.             if (!in_array($canonicalMethod, ['GET'])) {
  186.                 $allow array_merge($allow, ['GET']);
  187.                 goto not_fos_js_routing_js;
  188.             }
  189.             return $ret;
  190.         }
  191.         not_fos_js_routing_js:
  192.         if ('/' === $pathinfo && !$allow) {
  193.             throw new Symfony\Component\Routing\Exception\NoConfigurationException();
  194.         }
  195.         throw count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
  196.     }
  197. }