var/cache/dev/appDevDebugProjectContainerUrlMatcher.php line 168

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 appDevDebugProjectContainerUrlMatcher 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.             // _wdt
  28.             if (=== strpos($pathinfo'/_wdt') && preg_match('#^/_wdt/(?P<token>[^/]++)$#sD'$pathinfo$matches)) {
  29.                 return $this->mergeDefaults(array_replace($matches, ['_route' => '_wdt']), array (  '_controller' => 'web_profiler.controller.profiler:toolbarAction',));
  30.             }
  31.             if (=== strpos($pathinfo'/_profiler')) {
  32.                 // _profiler_home
  33.                 if ('/_profiler' === $trimmedPathinfo) {
  34.                     $ret = array (  '_controller' => 'web_profiler.controller.profiler:homeAction',  '_route' => '_profiler_home',);
  35.                     if ('/' === substr($pathinfo, -1)) {
  36.                         // no-op
  37.                     } elseif ('GET' !== $canonicalMethod) {
  38.                         goto not__profiler_home;
  39.                     } else {
  40.                         return array_replace($ret$this->redirect($rawPathinfo.'/''_profiler_home'));
  41.                     }
  42.                     return $ret;
  43.                 }
  44.                 not__profiler_home:
  45.                 if (=== strpos($pathinfo'/_profiler/search')) {
  46.                     // _profiler_search
  47.                     if ('/_profiler/search' === $pathinfo) {
  48.                         return array (  '_controller' => 'web_profiler.controller.profiler:searchAction',  '_route' => '_profiler_search',);
  49.                     }
  50.                     // _profiler_search_bar
  51.                     if ('/_profiler/search_bar' === $pathinfo) {
  52.                         return array (  '_controller' => 'web_profiler.controller.profiler:searchBarAction',  '_route' => '_profiler_search_bar',);
  53.                     }
  54.                 }
  55.                 // _profiler_phpinfo
  56.                 if ('/_profiler/phpinfo' === $pathinfo) {
  57.                     return array (  '_controller' => 'web_profiler.controller.profiler:phpinfoAction',  '_route' => '_profiler_phpinfo',);
  58.                 }
  59.                 // _profiler_search_results
  60.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/search/results$#sD'$pathinfo$matches)) {
  61.                     return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler_search_results']), array (  '_controller' => 'web_profiler.controller.profiler:searchResultsAction',));
  62.                 }
  63.                 // _profiler_open_file
  64.                 if ('/_profiler/open' === $pathinfo) {
  65.                     return array (  '_controller' => 'web_profiler.controller.profiler:openAction',  '_route' => '_profiler_open_file',);
  66.                 }
  67.                 // _profiler
  68.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)$#sD'$pathinfo$matches)) {
  69.                     return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler']), array (  '_controller' => 'web_profiler.controller.profiler:panelAction',));
  70.                 }
  71.                 // _profiler_router
  72.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/router$#sD'$pathinfo$matches)) {
  73.                     return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler_router']), array (  '_controller' => 'web_profiler.controller.router:panelAction',));
  74.                 }
  75.                 // _profiler_exception
  76.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception$#sD'$pathinfo$matches)) {
  77.                     return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler_exception']), array (  '_controller' => 'web_profiler.controller.exception:showAction',));
  78.                 }
  79.                 // _profiler_exception_css
  80.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception\\.css$#sD'$pathinfo$matches)) {
  81.                     return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler_exception_css']), array (  '_controller' => 'web_profiler.controller.exception:cssAction',));
  82.                 }
  83.             }
  84.             // _twig_error_test
  85.             if (=== strpos($pathinfo'/_error') && preg_match('#^/_error/(?P<code>\\d+)(?:\\.(?P<_format>[^/]++))?$#sD'$pathinfo$matches)) {
  86.                 return $this->mergeDefaults(array_replace($matches, ['_route' => '_twig_error_test']), array (  '_controller' => 'twig.controller.preview_error:previewErrorPageAction',  '_format' => 'html',));
  87.             }
  88.         }
  89.         // api_qr
  90.         if (=== strpos($pathinfo'/api/qr') && preg_match('#^/api/qr/(?P<companyId>[^/]++)/(?P<areaId>[^/]++)/(?P<storeId>[^/]++)/(?P<itemId>[^/]++)/(?P<contentId>[^/]++)$#sD'$pathinfo$matches)) {
  91.             return $this->mergeDefaults(array_replace($matches, ['_route' => 'api_qr']), array (  '_controller' => 'AppBundle\\Controller\\ApiController::qrAction',));
  92.         }
  93.         if (=== strpos($pathinfo'/area')) {
  94.             // area
  95.             if (preg_match('#^/area/(?P<code>[^/]++)$#sD'$pathinfo$matches)) {
  96.                 return $this->mergeDefaults(array_replace($matches, ['_route' => 'area']), array (  '_controller' => 'AppBundle\\Controller\\AreaController::areaAction',));
  97.             }
  98.             // area_change_ajax
  99.             if ('/area/ajax/change' === $pathinfo) {
  100.                 return array (  '_controller' => 'AppBundle\\Controller\\AreaController::areaChangeAjaxAction',  '_route' => 'area_change_ajax',);
  101.             }
  102.         }
  103.         elseif (=== strpos($pathinfo'/bag')) {
  104.             // bag
  105.             if ('/bag' === $pathinfo) {
  106.                 return array (  '_controller' => 'AppBundle\\Controller\\BagController::bagAction',  '_route' => 'bag',);
  107.             }
  108.             // bag_ajax
  109.             if ('/bag/ajax' === $pathinfo) {
  110.                 return array (  '_controller' => 'AppBundle\\Controller\\BagController::ajaxAction',  '_route' => 'bag_ajax',);
  111.             }
  112.         }
  113.         // cancel
  114.         if (=== strpos($pathinfo'/cancel') && preg_match('#^/cancel/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  115.             return $this->mergeDefaults(array_replace($matches, ['_route' => 'cancel']), array (  '_controller' => 'AppBundle\\Controller\\BagController::cancelAction',));
  116.         }
  117.         // complete
  118.         if (=== strpos($pathinfo'/complete') && preg_match('#^/complete(?:/(?P<id>[^/]++))?$#sD'$pathinfo$matches)) {
  119.             return $this->mergeDefaults(array_replace($matches, ['_route' => 'complete']), array (  'id' => NULL,  '_controller' => 'AppBundle\\Controller\\CompleteController::completeAction',));
  120.         }
  121.         if (=== strpos($pathinfo'/item')) {
  122.             // item
  123.             if ('/item' === $pathinfo) {
  124.                 return array (  '_controller' => 'AppBundle\\Controller\\ItemController::itemAction',  '_route' => 'item',);
  125.             }
  126.             // item_ajax
  127.             if ('/item/ajax' === $pathinfo) {
  128.                 return array (  '_controller' => 'AppBundle\\Controller\\ItemController::ajaxAction',  '_route' => 'item_ajax',);
  129.             }
  130.         }
  131.         if ('/' === $pathinfo && !$allow) {
  132.             throw new Symfony\Component\Routing\Exception\NoConfigurationException();
  133.         }
  134.         throw count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
  135.     }
  136. }