var/cache/dev/srcDevDebugProjectContainerUrlMatcher.php line 50

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($pathinfo)
  16.     {
  17.         $allow $allowSchemes = [];
  18.         if ($ret $this->doMatch($pathinfo$allow$allowSchemes)) {
  19.             return $ret;
  20.         }
  21.         if ($allow) {
  22.             throw new MethodNotAllowedException(array_keys($allow));
  23.         }
  24.         if (!in_array($this->context->getMethod(), ['HEAD''GET'], true)) {
  25.             // no-op
  26.         } elseif ($allowSchemes) {
  27.             redirect_scheme:
  28.             $scheme $this->context->getScheme();
  29.             $this->context->setScheme(key($allowSchemes));
  30.             try {
  31.                 if ($ret $this->doMatch($pathinfo)) {
  32.                     return $this->redirect($pathinfo$ret['_route'], $this->context->getScheme()) + $ret;
  33.                 }
  34.             } finally {
  35.                 $this->context->setScheme($scheme);
  36.             }
  37.         } elseif ('/' !== $trimmedPathinfo rtrim($pathinfo'/') ?: '/') {
  38.             $pathinfo $trimmedPathinfo === $pathinfo $pathinfo.'/' $trimmedPathinfo;
  39.             if ($ret $this->doMatch($pathinfo$allow$allowSchemes)) {
  40.                 return $this->redirect($pathinfo$ret['_route']) + $ret;
  41.             }
  42.             if ($allowSchemes) {
  43.                 goto redirect_scheme;
  44.             }
  45.         }
  46.         throw new ResourceNotFoundException();
  47.     }
  48.     private function doMatch(string $pathinfo, array &$allow = [], array &$allowSchemes = []): array
  49.     {
  50.         $allow $allowSchemes = [];
  51.         $pathinfo rawurldecode($pathinfo) ?: '/';
  52.         $trimmedPathinfo rtrim($pathinfo'/') ?: '/';
  53.         $context $this->context;
  54.         $requestMethod $canonicalMethod $context->getMethod();
  55.         if ('HEAD' === $requestMethod) {
  56.             $canonicalMethod 'GET';
  57.         }
  58.         switch ($trimmedPathinfo) {
  59.             default:
  60.                 $routes = [
  61.                     '/admin/downloads' => [['_route' => 'downloads_index''_controller' => 'App\\Controller\\DownloadsController::index'], null, ['GET' => 0], nulltrue],
  62.                     '/admin/downloads/new' => [['_route' => 'downloads_new''_controller' => 'App\\Controller\\DownloadsController::new'], null, ['GET' => 0'POST' => 1], nullfalse],
  63.                     '/admin/kontakt' => [['_route' => 'kontakt_index''_controller' => 'App\\Controller\\KontaktController::index'], null, ['GET' => 0], nulltrue],
  64.                     '/admin/kontakt/new' => [['_route' => 'kontakt_new''_controller' => 'App\\Controller\\KontaktController::new'], null, ['GET' => 0'POST' => 1], nullfalse],
  65.                     '/admin/mitglieder' => [['_route' => 'mitglieder_index''_controller' => 'App\\Controller\\MitgliederController::index'], null, ['GET' => 0], nulltrue],
  66.                     '/admin/mitglieder/new' => [['_route' => 'mitglieder_new''_controller' => 'App\\Controller\\MitgliederController::new'], null, ['GET' => 0'POST' => 1], nullfalse],
  67.                     '/admin/playlist' => [['_route' => 'playlist_index''_controller' => 'App\\Controller\\PlaylistController::index'], null, ['GET' => 0], nulltrue],
  68.                     '/admin/playlist/new' => [['_route' => 'playlist_new''_controller' => 'App\\Controller\\PlaylistController::new'], null, ['GET' => 0'POST' => 1], nullfalse],
  69.                     '/admin/login_check' => [['_route' => 'login_check''_controller' => 'App\\Controller\\SecurityController::loginCheckAction'], nullnullnullfalse],
  70.                     '/admin/logout' => [['_route' => 'logout''_controller' => 'App\\Controller\\SecurityController::logoutAction'], nullnullnullfalse],
  71.                     '/admin/slider' => [['_route' => 'slider_index''_controller' => 'App\\Controller\\SliderController::index'], null, ['GET' => 0], nulltrue],
  72.                     '/admin/slider/new' => [['_route' => 'slider_new''_controller' => 'App\\Controller\\SliderController::new'], null, ['GET' => 0'POST' => 1], nullfalse],
  73.                     '/admin/termine' => [['_route' => 'termine_index''_controller' => 'App\\Controller\\TermineController::index'], null, ['GET' => 0], nulltrue],
  74.                     '/admin/termine/new' => [['_route' => 'termine_new''_controller' => 'App\\Controller\\TermineController::new'], null, ['GET' => 0'POST' => 1], nullfalse],
  75.                     '/_profiler' => [['_route' => '_profiler_home''_controller' => 'web_profiler.controller.profiler::homeAction'], nullnullnulltrue],
  76.                     '/_profiler/search' => [['_route' => '_profiler_search''_controller' => 'web_profiler.controller.profiler::searchAction'], nullnullnullfalse],
  77.                     '/_profiler/search_bar' => [['_route' => '_profiler_search_bar''_controller' => 'web_profiler.controller.profiler::searchBarAction'], nullnullnullfalse],
  78.                     '/_profiler/phpinfo' => [['_route' => '_profiler_phpinfo''_controller' => 'web_profiler.controller.profiler::phpinfoAction'], nullnullnullfalse],
  79.                     '/_profiler/open' => [['_route' => '_profiler_open_file''_controller' => 'web_profiler.controller.profiler::openAction'], nullnullnullfalse],
  80.                     '/' => [['_route' => 'home''_controller' => 'App\\Controller\\HomeController:index'], nullnullnullfalse],
  81.                     '/admin/login' => [['_route' => 'login''_controller' => 'App\\Controller\\SecurityController:login'], nullnullnullfalse],
  82.                     '/admin' => [['_route' => 'admin''_controller' => 'App\\Controller\\AdminController:index'], nullnullnullfalse],
  83.                 ];
  84.                 if (!isset($routes[$trimmedPathinfo])) {
  85.                     break;
  86.                 }
  87.                 list($ret$requiredHost$requiredMethods$requiredSchemes$hasTrailingSlash) = $routes[$trimmedPathinfo];
  88.                 if ('/' !== $pathinfo && $hasTrailingSlash === ($trimmedPathinfo === $pathinfo)) {
  89.                     if ('GET' === $canonicalMethod && (!$requiredMethods || isset($requiredMethods['GET']))) {
  90.                         return $allow $allowSchemes = [];
  91.                     }
  92.                     break;
  93.                 }
  94.                 $hasRequiredScheme = !$requiredSchemes || isset($requiredSchemes[$context->getScheme()]);
  95.                 if ($requiredMethods && !isset($requiredMethods[$canonicalMethod]) && !isset($requiredMethods[$requestMethod])) {
  96.                     if ($hasRequiredScheme) {
  97.                         $allow += $requiredMethods;
  98.                     }
  99.                     break;
  100.                 }
  101.                 if (!$hasRequiredScheme) {
  102.                     $allowSchemes += $requiredSchemes;
  103.                     break;
  104.                 }
  105.                 return $ret;
  106.         }
  107.         $matchedPathinfo $pathinfo;
  108.         $regexList = [
  109.             => '{^(?'
  110.                     .'|/admin/(?'
  111.                         .'|downloads/([^/]++)(?'
  112.                             .'|(*:38)'
  113.                             .'|/edit(*:50)'
  114.                             .'|(*:57)'
  115.                         .')'
  116.                         .'|kontakt/([^/]++)(?'
  117.                             .'|(*:84)'
  118.                             .'|/edit(*:96)'
  119.                             .'|(*:103)'
  120.                         .')'
  121.                         .'|mitglieder/([^/]++)(?'
  122.                             .'|(*:134)'
  123.                             .'|/edit(*:147)'
  124.                             .'|(*:155)'
  125.                         .')'
  126.                         .'|playlist/([^/]++)(?'
  127.                             .'|(*:184)'
  128.                             .'|/edit(*:197)'
  129.                             .'|(*:205)'
  130.                         .')'
  131.                         .'|slider/([^/]++)(?'
  132.                             .'|(*:232)'
  133.                             .'|/edit(*:245)'
  134.                             .'|(*:253)'
  135.                         .')'
  136.                         .'|termine/([^/]++)(?'
  137.                             .'|(*:281)'
  138.                             .'|/edit(*:294)'
  139.                             .'|(*:302)'
  140.                         .')'
  141.                     .')'
  142.                     .'|/_(?'
  143.                         .'|error/(\\d+)(?:\\.([^/]++))?(*:343)'
  144.                         .'|wdt/([^/]++)(*:363)'
  145.                         .'|profiler/([^/]++)(?'
  146.                             .'|/(?'
  147.                                 .'|search/results(*:409)'
  148.                                 .'|router(*:423)'
  149.                                 .'|exception(?'
  150.                                     .'|(*:443)'
  151.                                     .'|\\.css(*:456)'
  152.                                 .')'
  153.                             .')'
  154.                             .'|(*:466)'
  155.                         .')'
  156.                     .')'
  157.                 .')/?$}sD',
  158.         ];
  159.         foreach ($regexList as $offset => $regex) {
  160.             while (preg_match($regex$matchedPathinfo$matches)) {
  161.                 switch ($m = (int) $matches['MARK']) {
  162.                     default:
  163.                         $routes = [
  164.                             38 => [['_route' => 'downloads_show''_controller' => 'App\\Controller\\DownloadsController::show'], ['id'], ['GET' => 0], nullfalsetrue],
  165.                             50 => [['_route' => 'downloads_edit''_controller' => 'App\\Controller\\DownloadsController::edit'], ['id'], ['GET' => 0'POST' => 1], nullfalsefalse],
  166.                             57 => [['_route' => 'downloads_delete''_controller' => 'App\\Controller\\DownloadsController::delete'], ['id'], ['DELETE' => 0], nullfalsetrue],
  167.                             84 => [['_route' => 'kontakt_show''_controller' => 'App\\Controller\\KontaktController::show'], ['id'], ['GET' => 0], nullfalsetrue],
  168.                             96 => [['_route' => 'kontakt_edit''_controller' => 'App\\Controller\\KontaktController::edit'], ['id'], ['GET' => 0'POST' => 1], nullfalsefalse],
  169.                             103 => [['_route' => 'kontakt_delete''_controller' => 'App\\Controller\\KontaktController::delete'], ['id'], ['DELETE' => 0], nullfalsetrue],
  170.                             134 => [['_route' => 'mitglieder_show''_controller' => 'App\\Controller\\MitgliederController::show'], ['id'], ['GET' => 0], nullfalsetrue],
  171.                             147 => [['_route' => 'mitglieder_edit''_controller' => 'App\\Controller\\MitgliederController::edit'], ['id'], ['GET' => 0'POST' => 1], nullfalsefalse],
  172.                             155 => [['_route' => 'mitglieder_delete''_controller' => 'App\\Controller\\MitgliederController::delete'], ['id'], ['DELETE' => 0], nullfalsetrue],
  173.                             184 => [['_route' => 'playlist_show''_controller' => 'App\\Controller\\PlaylistController::show'], ['id'], ['GET' => 0], nullfalsetrue],
  174.                             197 => [['_route' => 'playlist_edit''_controller' => 'App\\Controller\\PlaylistController::edit'], ['id'], ['GET' => 0'POST' => 1], nullfalsefalse],
  175.                             205 => [['_route' => 'playlist_delete''_controller' => 'App\\Controller\\PlaylistController::delete'], ['id'], ['DELETE' => 0], nullfalsetrue],
  176.                             232 => [['_route' => 'slider_show''_controller' => 'App\\Controller\\SliderController::show'], ['id'], ['GET' => 0], nullfalsetrue],
  177.                             245 => [['_route' => 'slider_edit''_controller' => 'App\\Controller\\SliderController::edit'], ['id'], ['GET' => 0'POST' => 1], nullfalsefalse],
  178.                             253 => [['_route' => 'slider_delete''_controller' => 'App\\Controller\\SliderController::delete'], ['id'], ['DELETE' => 0], nullfalsetrue],
  179.                             281 => [['_route' => 'termine_show''_controller' => 'App\\Controller\\TermineController::show'], ['id'], ['GET' => 0], nullfalsetrue],
  180.                             294 => [['_route' => 'termine_edit''_controller' => 'App\\Controller\\TermineController::edit'], ['id'], ['GET' => 0'POST' => 1], nullfalsefalse],
  181.                             302 => [['_route' => 'termine_delete''_controller' => 'App\\Controller\\TermineController::delete'], ['id'], ['DELETE' => 0], nullfalsetrue],
  182.                             343 => [['_route' => '_twig_error_test''_controller' => 'twig.controller.preview_error::previewErrorPageAction''_format' => 'html'], ['code''_format'], nullnullfalsetrue],
  183.                             363 => [['_route' => '_wdt''_controller' => 'web_profiler.controller.profiler::toolbarAction'], ['token'], nullnullfalsetrue],
  184.                             409 => [['_route' => '_profiler_search_results''_controller' => 'web_profiler.controller.profiler::searchResultsAction'], ['token'], nullnullfalsefalse],
  185.                             423 => [['_route' => '_profiler_router''_controller' => 'web_profiler.controller.router::panelAction'], ['token'], nullnullfalsefalse],
  186.                             443 => [['_route' => '_profiler_exception''_controller' => 'web_profiler.controller.exception::showAction'], ['token'], nullnullfalsefalse],
  187.                             456 => [['_route' => '_profiler_exception_css''_controller' => 'web_profiler.controller.exception::cssAction'], ['token'], nullnullfalsefalse],
  188.                             466 => [['_route' => '_profiler''_controller' => 'web_profiler.controller.profiler::panelAction'], ['token'], nullnullfalsetrue],
  189.                         ];
  190.                         list($ret$vars$requiredMethods$requiredSchemes$hasTrailingSlash$hasTrailingVar) = $routes[$m];
  191.                         $hasTrailingVar $trimmedPathinfo !== $pathinfo && $hasTrailingVar;
  192.                         if ('/' !== $pathinfo && !$hasTrailingVar && $hasTrailingSlash === ($trimmedPathinfo === $pathinfo)) {
  193.                             if ('GET' === $canonicalMethod && (!$requiredMethods || isset($requiredMethods['GET']))) {
  194.                                 return $allow $allowSchemes = [];
  195.                             }
  196.                             break;
  197.                         }
  198.                         if ($hasTrailingSlash && $hasTrailingVar && preg_match($regexrtrim($matchedPathinfo'/') ?: '/'$n) && $m === (int) $n['MARK']) {
  199.                             $matches $n;
  200.                         }
  201.                         foreach ($vars as $i => $v) {
  202.                             if (isset($matches[$i])) {
  203.                                 $ret[$v] = $matches[$i];
  204.                             }
  205.                         }
  206.                         $hasRequiredScheme = !$requiredSchemes || isset($requiredSchemes[$context->getScheme()]);
  207.                         if ($requiredMethods && !isset($requiredMethods[$canonicalMethod]) && !isset($requiredMethods[$requestMethod])) {
  208.                             if ($hasRequiredScheme) {
  209.                                 $allow += $requiredMethods;
  210.                             }
  211.                             break;
  212.                         }
  213.                         if (!$hasRequiredScheme) {
  214.                             $allowSchemes += $requiredSchemes;
  215.                             break;
  216.                         }
  217.                         return $ret;
  218.                 }
  219.                 if (466 === $m) {
  220.                     break;
  221.                 }
  222.                 $regex substr_replace($regex'F'$m $offsetstrlen($m));
  223.                 $offset += strlen($m);
  224.             }
  225.         }
  226.         if ('/' === $pathinfo && !$allow && !$allowSchemes) {
  227.             throw new Symfony\Component\Routing\Exception\NoConfigurationException();
  228.         }
  229.         return [];
  230.     }
  231. }