var/cache/dev/srcDevDebugProjectContainerUrlMatcher.php line 288

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 = array();
  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'/api')) {
  27.             if (=== strpos($pathinfo'/api/postcard/create')) {
  28.                 // app_api_createpostcard
  29.                 if (preg_match('#^/api/postcard/create/(?P<uniqueID>[^/]++)$#sD'$pathinfo$matches)) {
  30.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_api_createpostcard')), array (  '_controller' => 'App\\Controller\\ApiController::createPostCard',));
  31.                 }
  32.                 // app_api_createpostcard_1
  33.                 if (preg_match('#^/api/postcard/create/(?P<path>[^/]++)/(?P<uniqueID>[^/]++)$#sD'$pathinfo$matches)) {
  34.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_api_createpostcard_1')), array (  'path' => NULL,  '_controller' => 'App\\Controller\\ApiController::createPostCard',));
  35.                 }
  36.             }
  37.             // app_api_getpreview
  38.             if ('/api/get_preview/' === $pathinfo) {
  39.                 $ret = array (  '_controller' => 'App\\Controller\\ApiController::getPreview',  '_route' => 'app_api_getpreview',);
  40.                 if (!in_array($requestMethod, array('POST'))) {
  41.                     $allow array_merge($allow, array('POST'));
  42.                     goto not_app_api_getpreview;
  43.                 }
  44.                 return $ret;
  45.             }
  46.             not_app_api_getpreview:
  47.             // app_api_getlayout
  48.             if (=== strpos($pathinfo'/api/getTemplates') && preg_match('#^/api/getTemplates/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  49.                 $ret $this->mergeDefaults(array_replace($matches, array('_route' => 'app_api_getlayout')), array (  '_controller' => 'App\\Controller\\ApiController::getLayout',));
  50.                 if (!in_array($canonicalMethod, array('GET'))) {
  51.                     $allow array_merge($allow, array('GET'));
  52.                     goto not_app_api_getlayout;
  53.                 }
  54.                 return $ret;
  55.             }
  56.             not_app_api_getlayout:
  57.             // app_api_getstatus
  58.             if (=== strpos($pathinfo'/api/status') && preg_match('#^/api/status/(?P<cardKey>[^/]++)$#sD'$pathinfo$matches)) {
  59.                 return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_api_getstatus')), array (  '_controller' => 'App\\Controller\\ApiController::getStatus',));
  60.             }
  61.             // app_api_savetofirebase
  62.             if ('/api/send/' === $pathinfo) {
  63.                 $ret = array (  '_controller' => 'App\\Controller\\ApiController::saveToFireBase',  '_route' => 'app_api_savetofirebase',);
  64.                 if (!in_array($requestMethod, array('POST''OPTIONS'))) {
  65.                     $allow array_merge($allow, array('POST''OPTIONS'));
  66.                     goto not_app_api_savetofirebase;
  67.                 }
  68.                 return $ret;
  69.             }
  70.             not_app_api_savetofirebase:
  71.             // app_api_getquota
  72.             if ('/api/quota' === $trimmedPathinfo) {
  73.                 $ret = array (  '_controller' => 'App\\Controller\\ApiController::getQuota',  '_route' => 'app_api_getquota',);
  74.                 if ('/' === substr($pathinfo, -1)) {
  75.                     // no-op
  76.                 } elseif ('GET' !== $canonicalMethod) {
  77.                     goto not_app_api_getquota;
  78.                 } else {
  79.                     return array_replace($ret$this->redirect($rawPathinfo.'/''app_api_getquota'));
  80.                 }
  81.                 return $ret;
  82.             }
  83.             not_app_api_getquota:
  84.             // app_api_getonlinedays
  85.             if ('/api/days' === $trimmedPathinfo) {
  86.                 $ret = array (  '_controller' => 'App\\Controller\\ApiController::getOnlineDays',  '_route' => 'app_api_getonlinedays',);
  87.                 if ('/' === substr($pathinfo, -1)) {
  88.                     // no-op
  89.                 } elseif ('GET' !== $canonicalMethod) {
  90.                     goto not_app_api_getonlinedays;
  91.                 } else {
  92.                     return array_replace($ret$this->redirect($rawPathinfo.'/''app_api_getonlinedays'));
  93.                 }
  94.                 return $ret;
  95.             }
  96.             not_app_api_getonlinedays:
  97.             // app_api_getapimode
  98.             if ('/api/mode' === $trimmedPathinfo) {
  99.                 $ret = array (  '_controller' => 'App\\Controller\\ApiController::getAPIMode',  '_route' => 'app_api_getapimode',);
  100.                 if ('/' === substr($pathinfo, -1)) {
  101.                     // no-op
  102.                 } elseif ('GET' !== $canonicalMethod) {
  103.                     goto not_app_api_getapimode;
  104.                 } else {
  105.                     return array_replace($ret$this->redirect($rawPathinfo.'/''app_api_getapimode'));
  106.                 }
  107.                 return $ret;
  108.             }
  109.             not_app_api_getapimode:
  110.         }
  111.         elseif (=== strpos($pathinfo'/backend')) {
  112.             if (=== strpos($pathinfo'/backend/rhema')) {
  113.                 // app_backend_rhemalist
  114.                 if ('/backend/rhema/list' === $pathinfo) {
  115.                     return array (  '_controller' => 'App\\Controller\\BackendController::rhemaListAction',  '_route' => 'app_backend_rhemalist',);
  116.                 }
  117.                 // app_backend_rhemanewsletteremaildownload
  118.                 if ('/backend/rhema/newsletter/emails' === $pathinfo) {
  119.                     return array (  '_controller' => 'App\\Controller\\BackendController::rhemaNewsletterEmailDownload',  '_route' => 'app_backend_rhemanewsletteremaildownload',);
  120.                 }
  121.                 // app_backend_rhemacompetitionemaildownload
  122.                 if ('/backend/rhema/competition/emails' === $pathinfo) {
  123.                     return array (  '_controller' => 'App\\Controller\\BackendController::rhemaCompetitionEmailDownload',  '_route' => 'app_backend_rhemacompetitionemaildownload',);
  124.                 }
  125.             }
  126.             elseif (=== strpos($pathinfo'/backend/img')) {
  127.                 // app_backend_serveimg
  128.                 if (preg_match('#^/backend/img/(?P<name>[^/]++)$#sD'$pathinfo$matches)) {
  129.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backend_serveimg')), array (  '_controller' => 'App\\Controller\\BackendController::serveImg',));
  130.                 }
  131.                 // app_backend_serveimg_1
  132.                 if (preg_match('#^/backend/img/(?P<path>[^/]++)/(?P<name>[^/]++)$#sD'$pathinfo$matches)) {
  133.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_backend_serveimg_1')), array (  'path' => NULL,  '_controller' => 'App\\Controller\\BackendController::serveImg',));
  134.                 }
  135.             }
  136.             // app_backend_backend
  137.             if ('/backend' === $trimmedPathinfo) {
  138.                 $ret = array (  '_controller' => 'App\\Controller\\BackendController::backendAction',  '_route' => 'app_backend_backend',);
  139.                 if ('/' === substr($pathinfo, -1)) {
  140.                     // no-op
  141.                 } elseif ('GET' !== $canonicalMethod) {
  142.                     goto not_app_backend_backend;
  143.                 } else {
  144.                     return array_replace($ret$this->redirect($rawPathinfo.'/''app_backend_backend'));
  145.                 }
  146.                 return $ret;
  147.             }
  148.             not_app_backend_backend:
  149.         }
  150.         // app_redirect_redirect_to_front
  151.         if (=== strpos($pathinfo'/share') && preg_match('#^/share/(?P<image_uuid>[^/]++)$#sD'$pathinfo$matches)) {
  152.             return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_redirect_redirect_to_front')), array (  '_controller' => 'App\\Controller\\RedirectController::redirect_to_front',));
  153.         }
  154.         if (=== strpos($pathinfo'/img')) {
  155.             // app_redirect_getpregeneratedimage
  156.             if (preg_match('#^/img/(?P<layout>[^/\\-]++)\\-Postkarte(?P<motive>[^/\\.]++)\\.jpeg$#sD'$pathinfo$matches)) {
  157.                 return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_redirect_getpregeneratedimage')), array (  '_controller' => 'App\\Controller\\RedirectController::getPreGeneratedImage',));
  158.             }
  159.             // app_redirect_getpregeneratedimage_1
  160.             if (preg_match('#^/img/(?P<layout>[^/\\-]++)\\-Postkarte(?P<motive>[^/\\.]++)\\.jpg$#sD'$pathinfo$matches)) {
  161.                 return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_redirect_getpregeneratedimage_1')), array (  '_controller' => 'App\\Controller\\RedirectController::getPreGeneratedImage',));
  162.             }
  163.             // app_redirect_img
  164.             if (preg_match('#^/img/(?P<uniqueID>[^/\\.]++)\\.(?P<extension>[^/]++)$#sD'$pathinfo$matches)) {
  165.                 return $this->mergeDefaults(array_replace($matches, array('_route' => 'app_redirect_img')), array (  '_controller' => 'App\\Controller\\RedirectController::img',));
  166.             }
  167.         }
  168.         elseif (=== strpos($pathinfo'/_')) {
  169.             // _twig_error_test
  170.             if (=== strpos($pathinfo'/_error') && preg_match('#^/_error/(?P<code>\\d+)(?:\\.(?P<_format>[^/]++))?$#sD'$pathinfo$matches)) {
  171.                 return $this->mergeDefaults(array_replace($matches, array('_route' => '_twig_error_test')), array (  '_controller' => 'twig.controller.preview_error:previewErrorPageAction',  '_format' => 'html',));
  172.             }
  173.             // _wdt
  174.             if (=== strpos($pathinfo'/_wdt') && preg_match('#^/_wdt/(?P<token>[^/]++)$#sD'$pathinfo$matches)) {
  175.                 return $this->mergeDefaults(array_replace($matches, array('_route' => '_wdt')), array (  '_controller' => 'web_profiler.controller.profiler:toolbarAction',));
  176.             }
  177.             if (=== strpos($pathinfo'/_profiler')) {
  178.                 // _profiler_home
  179.                 if ('/_profiler' === $trimmedPathinfo) {
  180.                     $ret = array (  '_controller' => 'web_profiler.controller.profiler:homeAction',  '_route' => '_profiler_home',);
  181.                     if ('/' === substr($pathinfo, -1)) {
  182.                         // no-op
  183.                     } elseif ('GET' !== $canonicalMethod) {
  184.                         goto not__profiler_home;
  185.                     } else {
  186.                         return array_replace($ret$this->redirect($rawPathinfo.'/''_profiler_home'));
  187.                     }
  188.                     return $ret;
  189.                 }
  190.                 not__profiler_home:
  191.                 if (=== strpos($pathinfo'/_profiler/search')) {
  192.                     // _profiler_search
  193.                     if ('/_profiler/search' === $pathinfo) {
  194.                         return array (  '_controller' => 'web_profiler.controller.profiler:searchAction',  '_route' => '_profiler_search',);
  195.                     }
  196.                     // _profiler_search_bar
  197.                     if ('/_profiler/search_bar' === $pathinfo) {
  198.                         return array (  '_controller' => 'web_profiler.controller.profiler:searchBarAction',  '_route' => '_profiler_search_bar',);
  199.                     }
  200.                 }
  201.                 // _profiler_phpinfo
  202.                 if ('/_profiler/phpinfo' === $pathinfo) {
  203.                     return array (  '_controller' => 'web_profiler.controller.profiler:phpinfoAction',  '_route' => '_profiler_phpinfo',);
  204.                 }
  205.                 // _profiler_search_results
  206.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/search/results$#sD'$pathinfo$matches)) {
  207.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_search_results')), array (  '_controller' => 'web_profiler.controller.profiler:searchResultsAction',));
  208.                 }
  209.                 // _profiler_open_file
  210.                 if ('/_profiler/open' === $pathinfo) {
  211.                     return array (  '_controller' => 'web_profiler.controller.profiler:openAction',  '_route' => '_profiler_open_file',);
  212.                 }
  213.                 // _profiler
  214.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)$#sD'$pathinfo$matches)) {
  215.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler')), array (  '_controller' => 'web_profiler.controller.profiler:panelAction',));
  216.                 }
  217.                 // _profiler_router
  218.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/router$#sD'$pathinfo$matches)) {
  219.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_router')), array (  '_controller' => 'web_profiler.controller.router:panelAction',));
  220.                 }
  221.                 // _profiler_exception
  222.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception$#sD'$pathinfo$matches)) {
  223.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_exception')), array (  '_controller' => 'web_profiler.controller.exception:showAction',));
  224.                 }
  225.                 // _profiler_exception_css
  226.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception\\.css$#sD'$pathinfo$matches)) {
  227.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_exception_css')), array (  '_controller' => 'web_profiler.controller.exception:cssAction',));
  228.                 }
  229.             }
  230.         }
  231.         if ('/' === $pathinfo && !$allow) {
  232.             throw new Symfony\Component\Routing\Exception\NoConfigurationException();
  233.         }
  234.         throw count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
  235.     }
  236. }