var/cache/dev/srcDevDebugProjectContainerUrlMatcher.php line 403

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.         // home
  90.         if ('' === $trimmedPathinfo) {
  91.             $ret = array (  '_controller' => 'App\\Controller\\HomeController::index',  '_route' => 'home',);
  92.             if ('/' === substr($pathinfo, -1)) {
  93.                 // no-op
  94.             } elseif ('GET' !== $canonicalMethod) {
  95.                 goto not_home;
  96.             } else {
  97.                 return array_replace($ret$this->redirect($rawPathinfo.'/''home'));
  98.             }
  99.             return $ret;
  100.         }
  101.         not_home:
  102.         // synthese
  103.         if ('/synthese' === $pathinfo) {
  104.             return array (  '_controller' => 'App\\Controller\\SyntheseController::index',  '_route' => 'synthese',);
  105.         }
  106.         // sites
  107.         if ('/sites' === $pathinfo) {
  108.             return array (  '_controller' => 'App\\Controller\\HomeController::sites',  '_route' => 'sites',);
  109.         }
  110.         if (=== strpos($pathinfo'/l')) {
  111.             if (=== strpos($pathinfo'/li')) {
  112.                 // liste
  113.                 if ('/liste' === $pathinfo) {
  114.                     return array (  '_controller' => 'App\\Controller\\ListeController::index',  '_route' => 'liste',);
  115.                 }
  116.                 // licences
  117.                 if ('/licences' === $pathinfo) {
  118.                     return array (  '_controller' => 'App\\Controller\\LicenceController::index',  '_route' => 'licences',);
  119.                 }
  120.                 // livres
  121.                 if ('/livres' === $pathinfo) {
  122.                     return array (  '_controller' => 'App\\Controller\\HomeController::livres',  '_route' => 'livres',);
  123.                 }
  124.             }
  125.             elseif (=== strpos($pathinfo'/login')) {
  126.                 // fos_user_security_login
  127.                 if ('/login' === $pathinfo) {
  128.                     $ret = array (  '_controller' => 'fos_user.security.controller:loginAction',  '_route' => 'fos_user_security_login',);
  129.                     if (!in_array($canonicalMethod, ['GET''POST'])) {
  130.                         $allow array_merge($allow, ['GET''POST']);
  131.                         goto not_fos_user_security_login;
  132.                     }
  133.                     return $ret;
  134.                 }
  135.                 not_fos_user_security_login:
  136.                 // fos_user_security_check
  137.                 if ('/login_check' === $pathinfo) {
  138.                     $ret = array (  '_controller' => 'fos_user.security.controller:checkAction',  '_route' => 'fos_user_security_check',);
  139.                     if (!in_array($requestMethod, ['POST'])) {
  140.                         $allow array_merge($allow, ['POST']);
  141.                         goto not_fos_user_security_check;
  142.                     }
  143.                     return $ret;
  144.                 }
  145.                 not_fos_user_security_check:
  146.             }
  147.             // fos_user_security_logout
  148.             if ('/logout' === $pathinfo) {
  149.                 $ret = array (  '_controller' => 'fos_user.security.controller:logoutAction',  '_route' => 'fos_user_security_logout',);
  150.                 if (!in_array($canonicalMethod, ['GET''POST'])) {
  151.                     $allow array_merge($allow, ['GET''POST']);
  152.                     goto not_fos_user_security_logout;
  153.                 }
  154.                 return $ret;
  155.             }
  156.             not_fos_user_security_logout:
  157.         }
  158.         elseif (=== strpos($pathinfo'/plongeur')) {
  159.             // plongeurs
  160.             if ('/plongeurs' === $pathinfo) {
  161.                 return array (  '_controller' => 'App\\Controller\\UploadController::index',  '_route' => 'plongeurs',);
  162.             }
  163.             // plongeur
  164.             if (preg_match('#^/plongeur/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  165.                 return $this->mergeDefaults(array_replace($matches, ['_route' => 'plongeur']), array (  '_controller' => 'App\\Controller\\PlongeurController::index',));
  166.             }
  167.         }
  168.         elseif (=== strpos($pathinfo'/profile')) {
  169.             // fos_user_profile_show
  170.             if ('/profile' === $trimmedPathinfo) {
  171.                 $ret = array (  '_controller' => 'fos_user.profile.controller:showAction',  '_route' => 'fos_user_profile_show',);
  172.                 if ('/' === substr($pathinfo, -1)) {
  173.                     // no-op
  174.                 } elseif ('GET' !== $canonicalMethod) {
  175.                     goto not_fos_user_profile_show;
  176.                 } else {
  177.                     return array_replace($ret$this->redirect($rawPathinfo.'/''fos_user_profile_show'));
  178.                 }
  179.                 if (!in_array($canonicalMethod, ['GET'])) {
  180.                     $allow array_merge($allow, ['GET']);
  181.                     goto not_fos_user_profile_show;
  182.                 }
  183.                 return $ret;
  184.             }
  185.             not_fos_user_profile_show:
  186.             // fos_user_profile_edit
  187.             if ('/profile/edit' === $pathinfo) {
  188.                 $ret = array (  '_controller' => 'fos_user.profile.controller:editAction',  '_route' => 'fos_user_profile_edit',);
  189.                 if (!in_array($canonicalMethod, ['GET''POST'])) {
  190.                     $allow array_merge($allow, ['GET''POST']);
  191.                     goto not_fos_user_profile_edit;
  192.                 }
  193.                 return $ret;
  194.             }
  195.             not_fos_user_profile_edit:
  196.             // fos_user_change_password
  197.             if ('/profile/change-password' === $pathinfo) {
  198.                 $ret = array (  '_controller' => 'fos_user.change_password.controller:changePasswordAction',  '_route' => 'fos_user_change_password',);
  199.                 if (!in_array($canonicalMethod, ['GET''POST'])) {
  200.                     $allow array_merge($allow, ['GET''POST']);
  201.                     goto not_fos_user_change_password;
  202.                 }
  203.                 return $ret;
  204.             }
  205.             not_fos_user_change_password:
  206.         }
  207.         elseif (=== strpos($pathinfo'/upload')) {
  208.             // upload
  209.             if ('/upload' === $pathinfo) {
  210.                 return array (  '_controller' => 'App\\Controller\\UploadController::upload',  '_route' => 'upload',);
  211.             }
  212.             // uploadlicences
  213.             if ('/uploadlicences' === $pathinfo) {
  214.                 return array (  '_controller' => 'App\\Controller\\LicenceController::upload',  '_route' => 'uploadlicences',);
  215.             }
  216.         }
  217.         elseif (=== strpos($pathinfo'/miseajour')) {
  218.             // miseajour
  219.             if ('/miseajour' === $pathinfo) {
  220.                 return array (  '_controller' => 'App\\Controller\\UploadController::miseajour',  '_route' => 'miseajour',);
  221.             }
  222.             // miseajourlicences
  223.             if ('/miseajourlicences' === $pathinfo) {
  224.                 return array (  '_controller' => 'App\\Controller\\LicenceController::miseajour',  '_route' => 'miseajourlicences',);
  225.             }
  226.         }
  227.         // ecartslicence
  228.         if ('/ecartslicence' === $pathinfo) {
  229.             return array (  '_controller' => 'App\\Controller\\LicenceController::ecartslicence',  '_route' => 'ecartslicence',);
  230.         }
  231.         if (=== strpos($pathinfo'/register')) {
  232.             // fos_user_registration_register
  233.             if ('/register' === $trimmedPathinfo) {
  234.                 $ret = array (  '_controller' => 'fos_user.registration.controller:registerAction',  '_route' => 'fos_user_registration_register',);
  235.                 if ('/' === substr($pathinfo, -1)) {
  236.                     // no-op
  237.                 } elseif ('GET' !== $canonicalMethod) {
  238.                     goto not_fos_user_registration_register;
  239.                 } else {
  240.                     return array_replace($ret$this->redirect($rawPathinfo.'/''fos_user_registration_register'));
  241.                 }
  242.                 if (!in_array($canonicalMethod, ['GET''POST'])) {
  243.                     $allow array_merge($allow, ['GET''POST']);
  244.                     goto not_fos_user_registration_register;
  245.                 }
  246.                 return $ret;
  247.             }
  248.             not_fos_user_registration_register:
  249.             // fos_user_registration_check_email
  250.             if ('/register/check-email' === $pathinfo) {
  251.                 $ret = array (  '_controller' => 'fos_user.registration.controller:checkEmailAction',  '_route' => 'fos_user_registration_check_email',);
  252.                 if (!in_array($canonicalMethod, ['GET'])) {
  253.                     $allow array_merge($allow, ['GET']);
  254.                     goto not_fos_user_registration_check_email;
  255.                 }
  256.                 return $ret;
  257.             }
  258.             not_fos_user_registration_check_email:
  259.             if (=== strpos($pathinfo'/register/confirm')) {
  260.                 // fos_user_registration_confirm
  261.                 if (preg_match('#^/register/confirm/(?P<token>[^/]++)$#sD'$pathinfo$matches)) {
  262.                     $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'fos_user_registration_confirm']), array (  '_controller' => 'fos_user.registration.controller:confirmAction',));
  263.                     if (!in_array($canonicalMethod, ['GET'])) {
  264.                         $allow array_merge($allow, ['GET']);
  265.                         goto not_fos_user_registration_confirm;
  266.                     }
  267.                     return $ret;
  268.                 }
  269.                 not_fos_user_registration_confirm:
  270.                 // fos_user_registration_confirmed
  271.                 if ('/register/confirmed' === $pathinfo) {
  272.                     $ret = array (  '_controller' => 'fos_user.registration.controller:confirmedAction',  '_route' => 'fos_user_registration_confirmed',);
  273.                     if (!in_array($canonicalMethod, ['GET'])) {
  274.                         $allow array_merge($allow, ['GET']);
  275.                         goto not_fos_user_registration_confirmed;
  276.                     }
  277.                     return $ret;
  278.                 }
  279.                 not_fos_user_registration_confirmed:
  280.             }
  281.         }
  282.         elseif (=== strpos($pathinfo'/resetting')) {
  283.             // fos_user_resetting_request
  284.             if ('/resetting/request' === $pathinfo) {
  285.                 $ret = array (  '_controller' => 'fos_user.resetting.controller:requestAction',  '_route' => 'fos_user_resetting_request',);
  286.                 if (!in_array($canonicalMethod, ['GET'])) {
  287.                     $allow array_merge($allow, ['GET']);
  288.                     goto not_fos_user_resetting_request;
  289.                 }
  290.                 return $ret;
  291.             }
  292.             not_fos_user_resetting_request:
  293.             // fos_user_resetting_reset
  294.             if (=== strpos($pathinfo'/resetting/reset') && preg_match('#^/resetting/reset/(?P<token>[^/]++)$#sD'$pathinfo$matches)) {
  295.                 $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'fos_user_resetting_reset']), array (  '_controller' => 'fos_user.resetting.controller:resetAction',));
  296.                 if (!in_array($canonicalMethod, ['GET''POST'])) {
  297.                     $allow array_merge($allow, ['GET''POST']);
  298.                     goto not_fos_user_resetting_reset;
  299.                 }
  300.                 return $ret;
  301.             }
  302.             not_fos_user_resetting_reset:
  303.             // fos_user_resetting_send_email
  304.             if ('/resetting/send-email' === $pathinfo) {
  305.                 $ret = array (  '_controller' => 'fos_user.resetting.controller:sendEmailAction',  '_route' => 'fos_user_resetting_send_email',);
  306.                 if (!in_array($requestMethod, ['POST'])) {
  307.                     $allow array_merge($allow, ['POST']);
  308.                     goto not_fos_user_resetting_send_email;
  309.                 }
  310.                 return $ret;
  311.             }
  312.             not_fos_user_resetting_send_email:
  313.             // fos_user_resetting_check_email
  314.             if ('/resetting/check-email' === $pathinfo) {
  315.                 $ret = array (  '_controller' => 'fos_user.resetting.controller:checkEmailAction',  '_route' => 'fos_user_resetting_check_email',);
  316.                 if (!in_array($canonicalMethod, ['GET'])) {
  317.                     $allow array_merge($allow, ['GET']);
  318.                     goto not_fos_user_resetting_check_email;
  319.                 }
  320.                 return $ret;
  321.             }
  322.             not_fos_user_resetting_check_email:
  323.         }
  324.         if ('/' === $pathinfo && !$allow) {
  325.             throw new Symfony\Component\Routing\Exception\NoConfigurationException();
  326.         }
  327.         throw count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
  328.     }
  329. }