var/cache/dev/appDevDebugProjectContainerUrlMatcher.php line 208

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.         // timer
  90.         if ('' === $trimmedPathinfo) {
  91.             $ret = array (  '_controller' => 'AppBundle\\Controller\\TimerController::formAction',  '_route' => 'timer',);
  92.             if ('/' === substr($pathinfo, -1)) {
  93.                 // no-op
  94.             } elseif ('GET' !== $canonicalMethod) {
  95.                 goto not_timer;
  96.             } else {
  97.                 return array_replace($ret$this->redirect($rawPathinfo.'/''timer'));
  98.             }
  99.             return $ret;
  100.         }
  101.         not_timer:
  102.         if (=== strpos($pathinfo'/request')) {
  103.             if (=== strpos($pathinfo'/request/lookup')) {
  104.                 // timer_account_lookup
  105.                 if ('/request/lookup/account' === $pathinfo) {
  106.                     return array (  '_controller' => 'AppBundle\\Controller\\TimerController::timerLookupAccountAction',  '_route' => 'timer_account_lookup',);
  107.                 }
  108.                 // timer_project_lookup
  109.                 if (=== strpos($pathinfo'/request/lookup/project') && preg_match('#^/request/lookup/project/(?P<accountID>[^/]++)$#sD'$pathinfo$matches)) {
  110.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'timer_project_lookup']), array (  '_controller' => 'AppBundle\\Controller\\TimerController::timerLookupProjectAction',));
  111.                 }
  112.                 // timer_task_lookup
  113.                 if (=== strpos($pathinfo'/request/lookup/task') && preg_match('#^/request/lookup/task/(?P<accountID>[^/]++)/(?P<projectID>[^/]++)$#sD'$pathinfo$matches)) {
  114.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'timer_task_lookup']), array (  '_controller' => 'AppBundle\\Controller\\TimerController::timerLookupTaskAction',));
  115.                 }
  116.             }
  117.             // timer_log_time
  118.             if ('/request/log-time' === $pathinfo) {
  119.                 return array (  '_controller' => 'AppBundle\\Controller\\TimerController::logTime',  '_route' => 'timer_log_time',);
  120.             }
  121.             // timer_start_entry
  122.             if ('/request/start-entry' === $pathinfo) {
  123.                 return array (  '_controller' => 'AppBundle\\Controller\\TimerController::timerStartEntry',  '_route' => 'timer_start_entry',);
  124.             }
  125.             // timer_stop_entry
  126.             if ('/request/stop-entry' === $pathinfo) {
  127.                 return array (  '_controller' => 'AppBundle\\Controller\\TimerController::timerStopEntry',  '_route' => 'timer_stop_entry',);
  128.             }
  129.             // timer_recently_logged
  130.             if ('/request/recently-logged' === $pathinfo) {
  131.                 return array (  '_controller' => 'AppBundle\\Controller\\TimerController::recentlyLogged',  '_route' => 'timer_recently_logged',);
  132.             }
  133.             // remove_taskless_time
  134.             if ('/request/remove-taskless-time' === $pathinfo) {
  135.                 return array (  '_controller' => 'AppBundle\\Controller\\TimerController::removeTasklessTime',  '_route' => 'remove_taskless_time',);
  136.             }
  137.             if (=== strpos($pathinfo'/request/day-queue')) {
  138.                 // timer_day_queue
  139.                 if ('/request/day-queue' === $pathinfo) {
  140.                     return array (  '_controller' => 'AppBundle\\Controller\\TimerController::dayQueue',  '_route' => 'timer_day_queue',);
  141.                 }
  142.                 // timer_day_queue_add
  143.                 if ('/request/day-queue/add' === $pathinfo) {
  144.                     return array (  '_controller' => 'AppBundle\\Controller\\TimerController::dayQueueAdd',  '_route' => 'timer_day_queue_add',);
  145.                 }
  146.                 // timer_day_queue_remove
  147.                 if ('/request/day-queue/remove' === $pathinfo) {
  148.                     return array (  '_controller' => 'AppBundle\\Controller\\TimerController::dayQueueRemove',  '_route' => 'timer_day_queue_remove',);
  149.                 }
  150.                 // timer_day_queue_reorder
  151.                 if ('/request/day-queue/reorder' === $pathinfo) {
  152.                     return array (  '_controller' => 'AppBundle\\Controller\\TimerController::dayQueueReorder',  '_route' => 'timer_day_queue_reorder',);
  153.                 }
  154.             }
  155.             // timer_current_entry
  156.             if ('/request/current-entry' === $pathinfo) {
  157.                 return array (  '_controller' => 'AppBundle\\Controller\\TimerController::currentEntry',  '_route' => 'timer_current_entry',);
  158.             }
  159.             // app_timer_updateentry
  160.             if ('/request/update-entry' === $pathinfo) {
  161.                 return array (  '_controller' => 'AppBundle\\Controller\\TimerController::updateEntry',  '_route' => 'app_timer_updateentry',);
  162.             }
  163.         }
  164.         if ('/' === $pathinfo && !$allow) {
  165.             throw new Symfony\Component\Routing\Exception\NoConfigurationException();
  166.         }
  167.         throw count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
  168.     }
  169. }