var/cache/dev/appDevDebugProjectContainerUrlMatcher.php line 371

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.  * appDevDebugProjectContainerUrlMatcher.
  7.  *
  8.  * This class has been auto-generated
  9.  * by the Symfony Routing Component.
  10.  */
  11. class appDevDebugProjectContainerUrlMatcher extends Symfony\Bundle\FrameworkBundle\Routing\RedirectableUrlMatcher
  12. {
  13.     /**
  14.      * Constructor.
  15.      */
  16.     public function __construct(RequestContext $context)
  17.     {
  18.         $this->context $context;
  19.     }
  20.     public function match($pathinfo)
  21.     {
  22.         $allow = array();
  23.         $pathinfo rawurldecode($pathinfo);
  24.         $context $this->context;
  25.         $request $this->request;
  26.         if (=== strpos($pathinfo'/_')) {
  27.             // _wdt
  28.             if (=== strpos($pathinfo'/_wdt') && preg_match('#^/_wdt/(?P<token>[^/]++)$#s'$pathinfo$matches)) {
  29.                 return $this->mergeDefaults(array_replace($matches, array('_route' => '_wdt')), array (  '_controller' => 'web_profiler.controller.profiler:toolbarAction',));
  30.             }
  31.             if (=== strpos($pathinfo'/_profiler')) {
  32.                 // _profiler_home
  33.                 if (rtrim($pathinfo'/') === '/_profiler') {
  34.                     if (substr($pathinfo, -1) !== '/') {
  35.                         return $this->redirect($pathinfo.'/''_profiler_home');
  36.                     }
  37.                     return array (  '_controller' => 'web_profiler.controller.profiler:homeAction',  '_route' => '_profiler_home',);
  38.                 }
  39.                 if (=== strpos($pathinfo'/_profiler/search')) {
  40.                     // _profiler_search
  41.                     if ($pathinfo === '/_profiler/search') {
  42.                         return array (  '_controller' => 'web_profiler.controller.profiler:searchAction',  '_route' => '_profiler_search',);
  43.                     }
  44.                     // _profiler_search_bar
  45.                     if ($pathinfo === '/_profiler/search_bar') {
  46.                         return array (  '_controller' => 'web_profiler.controller.profiler:searchBarAction',  '_route' => '_profiler_search_bar',);
  47.                     }
  48.                 }
  49.                 // _profiler_info
  50.                 if (=== strpos($pathinfo'/_profiler/info') && preg_match('#^/_profiler/info/(?P<about>[^/]++)$#s'$pathinfo$matches)) {
  51.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_info')), array (  '_controller' => 'web_profiler.controller.profiler:infoAction',));
  52.                 }
  53.                 // _profiler_phpinfo
  54.                 if ($pathinfo === '/_profiler/phpinfo') {
  55.                     return array (  '_controller' => 'web_profiler.controller.profiler:phpinfoAction',  '_route' => '_profiler_phpinfo',);
  56.                 }
  57.                 // _profiler_search_results
  58.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/search/results$#s'$pathinfo$matches)) {
  59.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_search_results')), array (  '_controller' => 'web_profiler.controller.profiler:searchResultsAction',));
  60.                 }
  61.                 // _profiler_open_file
  62.                 if ($pathinfo === '/_profiler/open') {
  63.                     return array (  '_controller' => 'web_profiler.controller.profiler:openAction',  '_route' => '_profiler_open_file',);
  64.                 }
  65.                 // _profiler
  66.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)$#s'$pathinfo$matches)) {
  67.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler')), array (  '_controller' => 'web_profiler.controller.profiler:panelAction',));
  68.                 }
  69.                 // _profiler_router
  70.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/router$#s'$pathinfo$matches)) {
  71.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_router')), array (  '_controller' => 'web_profiler.controller.router:panelAction',));
  72.                 }
  73.                 // _profiler_exception
  74.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception$#s'$pathinfo$matches)) {
  75.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_exception')), array (  '_controller' => 'web_profiler.controller.exception:showAction',));
  76.                 }
  77.                 // _profiler_exception_css
  78.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception\\.css$#s'$pathinfo$matches)) {
  79.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_exception_css')), array (  '_controller' => 'web_profiler.controller.exception:cssAction',));
  80.                 }
  81.             }
  82.             // _twig_error_test
  83.             if (=== strpos($pathinfo'/_error') && preg_match('#^/_error/(?P<code>\\d+)(?:\\.(?P<_format>[^/]++))?$#s'$pathinfo$matches)) {
  84.                 return $this->mergeDefaults(array_replace($matches, array('_route' => '_twig_error_test')), array (  '_controller' => 'twig.controller.preview_error:previewErrorPageAction',  '_format' => 'html',));
  85.             }
  86.         }
  87.         // admin-speisekarte
  88.         if ($pathinfo === '/admin-speisekarte') {
  89.             return array (  '_controller' => 'AppBundle\\Controller\\AdminSpeisekarteController::speisekarteAction',  '_route' => 'admin-speisekarte',);
  90.         }
  91.         // delete-speisekarte
  92.         if ($pathinfo === '/delete-speisekarte') {
  93.             return array (  '_controller' => 'AppBundle\\Controller\\AdminSpeisekarteController::deleteSpeisekarteAction',  '_route' => 'delete-speisekarte',);
  94.         }
  95.         // aktionen
  96.         if ($pathinfo === '/aktionen') {
  97.             return array (  '_controller' => 'AppBundle\\Controller\\AktionenController::aktionenAction',  '_route' => 'aktionen',);
  98.         }
  99.         // bahnbestellung
  100.         if ($pathinfo === '/bahnbestellung') {
  101.             return array (  '_controller' => 'AppBundle\\Controller\\BahnbestellungController::bahnbestellungAction',  '_route' => 'bahnbestellung',);
  102.         }
  103.         if (=== strpos($pathinfo'/del-')) {
  104.             // del-bahnbestellung
  105.             if (=== strpos($pathinfo'/del-bahnbestellung') && preg_match('#^/del\\-bahnbestellung/(?P<id>[^/]++)$#s'$pathinfo$matches)) {
  106.                 return $this->mergeDefaults(array_replace($matches, array('_route' => 'del-bahnbestellung')), array (  '_controller' => 'AppBundle\\Controller\\BahnbestellungController::delBahnbestellungAction',));
  107.             }
  108.             // del-group-bahnbestellung
  109.             if (=== strpos($pathinfo'/del-group-bahnbestellung') && preg_match('#^/del\\-group\\-bahnbestellung/(?P<id>[^/]++)$#s'$pathinfo$matches)) {
  110.                 return $this->mergeDefaults(array_replace($matches, array('_route' => 'del-group-bahnbestellung')), array (  '_controller' => 'AppBundle\\Controller\\BahnbestellungController::delGroupBahnbestellungAction',));
  111.             }
  112.         }
  113.         // get-group-bahnbestellung
  114.         if (=== strpos($pathinfo'/get-group-bahnbestellung') && preg_match('#^/get\\-group\\-bahnbestellung/(?P<id>[^/]++)$#s'$pathinfo$matches)) {
  115.             return $this->mergeDefaults(array_replace($matches, array('_route' => 'get-group-bahnbestellung')), array (  '_controller' => 'AppBundle\\Controller\\BahnbestellungController::getGroupBahnbestellungen',));
  116.         }
  117.         // home
  118.         if (rtrim($pathinfo'/') === '') {
  119.             if (substr($pathinfo, -1) !== '/') {
  120.                 return $this->redirect($pathinfo.'/''home');
  121.             }
  122.             return array (  '_controller' => 'AppBundle\\Controller\\DefaultController::indexAction',  '_route' => 'home',);
  123.         }
  124.         // fotogalerie
  125.         if ($pathinfo === '/fotogalerie') {
  126.             return array (  '_controller' => 'AppBundle\\Controller\\FotogalerieController::fotogalerieAction',  '_route' => 'fotogalerie',);
  127.         }
  128.         // impressum
  129.         if ($pathinfo === '/impressum') {
  130.             return array (  '_controller' => 'AppBundle\\Controller\\ImpressumController::impressumAction',  '_route' => 'impressum',);
  131.         }
  132.         // kontakt
  133.         if ($pathinfo === '/kontakt') {
  134.             return array (  '_controller' => 'AppBundle\\Controller\\KontaktController::kontaktAction',  '_route' => 'kontakt',);
  135.         }
  136.         // speisekarte
  137.         if ($pathinfo === '/speisekarte') {
  138.             return array (  '_controller' => 'AppBundle\\Controller\\SpeisekarteController::speisekarteAction',  '_route' => 'speisekarte',);
  139.         }
  140.         // tischreservierung
  141.         if ($pathinfo === '/tischreservierung') {
  142.             return array (  '_controller' => 'AppBundle\\Controller\\TischreservierungController::TischreservierungAction',  '_route' => 'tischreservierung',);
  143.         }
  144.         // ueber-uns
  145.         if ($pathinfo === '/ueber-uns') {
  146.             return array (  '_controller' => 'AppBundle\\Controller\\UeberUnsController::ueberUnsAction',  '_route' => 'ueber-uns',);
  147.         }
  148.         if (=== strpos($pathinfo'/log')) {
  149.             if (=== strpos($pathinfo'/login')) {
  150.                 // fos_user_security_login
  151.                 if ($pathinfo === '/login') {
  152.                     if (!in_array($this->context->getMethod(), array('GET''POST''HEAD'))) {
  153.                         $allow array_merge($allow, array('GET''POST''HEAD'));
  154.                         goto not_fos_user_security_login;
  155.                     }
  156.                     return array (  '_controller' => 'FOS\\UserBundle\\Controller\\SecurityController::loginAction',  '_route' => 'fos_user_security_login',);
  157.                 }
  158.                 not_fos_user_security_login:
  159.                 // fos_user_security_check
  160.                 if ($pathinfo === '/login_check') {
  161.                     if ($this->context->getMethod() != 'POST') {
  162.                         $allow[] = 'POST';
  163.                         goto not_fos_user_security_check;
  164.                     }
  165.                     return array (  '_controller' => 'FOS\\UserBundle\\Controller\\SecurityController::checkAction',  '_route' => 'fos_user_security_check',);
  166.                 }
  167.                 not_fos_user_security_check:
  168.             }
  169.             // fos_user_security_logout
  170.             if ($pathinfo === '/logout') {
  171.                 if (!in_array($this->context->getMethod(), array('GET''POST''HEAD'))) {
  172.                     $allow array_merge($allow, array('GET''POST''HEAD'));
  173.                     goto not_fos_user_security_logout;
  174.                 }
  175.                 return array (  '_controller' => 'FOS\\UserBundle\\Controller\\SecurityController::logoutAction',  '_route' => 'fos_user_security_logout',);
  176.             }
  177.             not_fos_user_security_logout:
  178.         }
  179.         if (=== strpos($pathinfo'/profile')) {
  180.             // fos_user_profile_show
  181.             if (rtrim($pathinfo'/') === '/profile') {
  182.                 if (!in_array($this->context->getMethod(), array('GET''HEAD'))) {
  183.                     $allow array_merge($allow, array('GET''HEAD'));
  184.                     goto not_fos_user_profile_show;
  185.                 }
  186.                 if (substr($pathinfo, -1) !== '/') {
  187.                     return $this->redirect($pathinfo.'/''fos_user_profile_show');
  188.                 }
  189.                 return array (  '_controller' => 'FOS\\UserBundle\\Controller\\ProfileController::showAction',  '_route' => 'fos_user_profile_show',);
  190.             }
  191.             not_fos_user_profile_show:
  192.             // fos_user_profile_edit
  193.             if ($pathinfo === '/profile/edit') {
  194.                 if (!in_array($this->context->getMethod(), array('GET''POST''HEAD'))) {
  195.                     $allow array_merge($allow, array('GET''POST''HEAD'));
  196.                     goto not_fos_user_profile_edit;
  197.                 }
  198.                 return array (  '_controller' => 'FOS\\UserBundle\\Controller\\ProfileController::editAction',  '_route' => 'fos_user_profile_edit',);
  199.             }
  200.             not_fos_user_profile_edit:
  201.         }
  202.         if (=== strpos($pathinfo'/re')) {
  203.             if (=== strpos($pathinfo'/register')) {
  204.                 // fos_user_registration_register
  205.                 if (rtrim($pathinfo'/') === '/register') {
  206.                     if (!in_array($this->context->getMethod(), array('GET''POST''HEAD'))) {
  207.                         $allow array_merge($allow, array('GET''POST''HEAD'));
  208.                         goto not_fos_user_registration_register;
  209.                     }
  210.                     if (substr($pathinfo, -1) !== '/') {
  211.                         return $this->redirect($pathinfo.'/''fos_user_registration_register');
  212.                     }
  213.                     return array (  '_controller' => 'FOS\\UserBundle\\Controller\\RegistrationController::registerAction',  '_route' => 'fos_user_registration_register',);
  214.                 }
  215.                 not_fos_user_registration_register:
  216.                 if (=== strpos($pathinfo'/register/c')) {
  217.                     // fos_user_registration_check_email
  218.                     if ($pathinfo === '/register/check-email') {
  219.                         if (!in_array($this->context->getMethod(), array('GET''HEAD'))) {
  220.                             $allow array_merge($allow, array('GET''HEAD'));
  221.                             goto not_fos_user_registration_check_email;
  222.                         }
  223.                         return array (  '_controller' => 'FOS\\UserBundle\\Controller\\RegistrationController::checkEmailAction',  '_route' => 'fos_user_registration_check_email',);
  224.                     }
  225.                     not_fos_user_registration_check_email:
  226.                     if (=== strpos($pathinfo'/register/confirm')) {
  227.                         // fos_user_registration_confirm
  228.                         if (preg_match('#^/register/confirm/(?P<token>[^/]++)$#s'$pathinfo$matches)) {
  229.                             if (!in_array($this->context->getMethod(), array('GET''HEAD'))) {
  230.                                 $allow array_merge($allow, array('GET''HEAD'));
  231.                                 goto not_fos_user_registration_confirm;
  232.                             }
  233.                             return $this->mergeDefaults(array_replace($matches, array('_route' => 'fos_user_registration_confirm')), array (  '_controller' => 'FOS\\UserBundle\\Controller\\RegistrationController::confirmAction',));
  234.                         }
  235.                         not_fos_user_registration_confirm:
  236.                         // fos_user_registration_confirmed
  237.                         if ($pathinfo === '/register/confirmed') {
  238.                             if (!in_array($this->context->getMethod(), array('GET''HEAD'))) {
  239.                                 $allow array_merge($allow, array('GET''HEAD'));
  240.                                 goto not_fos_user_registration_confirmed;
  241.                             }
  242.                             return array (  '_controller' => 'FOS\\UserBundle\\Controller\\RegistrationController::confirmedAction',  '_route' => 'fos_user_registration_confirmed',);
  243.                         }
  244.                         not_fos_user_registration_confirmed:
  245.                     }
  246.                 }
  247.             }
  248.             if (=== strpos($pathinfo'/resetting')) {
  249.                 // fos_user_resetting_request
  250.                 if ($pathinfo === '/resetting/request') {
  251.                     if (!in_array($this->context->getMethod(), array('GET''HEAD'))) {
  252.                         $allow array_merge($allow, array('GET''HEAD'));
  253.                         goto not_fos_user_resetting_request;
  254.                     }
  255.                     return array (  '_controller' => 'FOS\\UserBundle\\Controller\\ResettingController::requestAction',  '_route' => 'fos_user_resetting_request',);
  256.                 }
  257.                 not_fos_user_resetting_request:
  258.                 // fos_user_resetting_send_email
  259.                 if ($pathinfo === '/resetting/send-email') {
  260.                     if ($this->context->getMethod() != 'POST') {
  261.                         $allow[] = 'POST';
  262.                         goto not_fos_user_resetting_send_email;
  263.                     }
  264.                     return array (  '_controller' => 'FOS\\UserBundle\\Controller\\ResettingController::sendEmailAction',  '_route' => 'fos_user_resetting_send_email',);
  265.                 }
  266.                 not_fos_user_resetting_send_email:
  267.                 // fos_user_resetting_check_email
  268.                 if ($pathinfo === '/resetting/check-email') {
  269.                     if (!in_array($this->context->getMethod(), array('GET''HEAD'))) {
  270.                         $allow array_merge($allow, array('GET''HEAD'));
  271.                         goto not_fos_user_resetting_check_email;
  272.                     }
  273.                     return array (  '_controller' => 'FOS\\UserBundle\\Controller\\ResettingController::checkEmailAction',  '_route' => 'fos_user_resetting_check_email',);
  274.                 }
  275.                 not_fos_user_resetting_check_email:
  276.                 // fos_user_resetting_reset
  277.                 if (=== strpos($pathinfo'/resetting/reset') && preg_match('#^/resetting/reset/(?P<token>[^/]++)$#s'$pathinfo$matches)) {
  278.                     if (!in_array($this->context->getMethod(), array('GET''POST''HEAD'))) {
  279.                         $allow array_merge($allow, array('GET''POST''HEAD'));
  280.                         goto not_fos_user_resetting_reset;
  281.                     }
  282.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'fos_user_resetting_reset')), array (  '_controller' => 'FOS\\UserBundle\\Controller\\ResettingController::resetAction',));
  283.                 }
  284.                 not_fos_user_resetting_reset:
  285.             }
  286.         }
  287.         // fos_user_change_password
  288.         if ($pathinfo === '/profile/change-password') {
  289.             if (!in_array($this->context->getMethod(), array('GET''POST''HEAD'))) {
  290.                 $allow array_merge($allow, array('GET''POST''HEAD'));
  291.                 goto not_fos_user_change_password;
  292.             }
  293.             return array (  '_controller' => 'FOS\\UserBundle\\Controller\\ChangePasswordController::changePasswordAction',  '_route' => 'fos_user_change_password',);
  294.         }
  295.         not_fos_user_change_password:
  296.         throw count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
  297.     }
  298. }