<?php
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
use Symfony\Component\Routing\RequestContext;
/**
* This class has been auto-generated
* by the Symfony Routing Component.
*/
class appDevDebugProjectContainerUrlMatcher extends Symfony\Bundle\FrameworkBundle\Routing\RedirectableUrlMatcher
{
public function __construct(RequestContext $context)
{
$this->context = $context;
}
public function match($rawPathinfo)
{
$allow = [];
$pathinfo = rawurldecode($rawPathinfo);
$trimmedPathinfo = rtrim($pathinfo, '/');
$context = $this->context;
$request = $this->request ?: $this->createRequest($pathinfo);
$requestMethod = $canonicalMethod = $context->getMethod();
if ('HEAD' === $requestMethod) {
$canonicalMethod = 'GET';
}
if (0 === strpos($pathinfo, '/_')) {
// _wdt
if (0 === strpos($pathinfo, '/_wdt') && preg_match('#^/_wdt/(?P<token>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => '_wdt']), array ( '_controller' => 'web_profiler.controller.profiler:toolbarAction',));
}
if (0 === strpos($pathinfo, '/_profiler')) {
// _profiler_home
if ('/_profiler' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'web_profiler.controller.profiler:homeAction', '_route' => '_profiler_home',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not__profiler_home;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', '_profiler_home'));
}
return $ret;
}
not__profiler_home:
if (0 === strpos($pathinfo, '/_profiler/search')) {
// _profiler_search
if ('/_profiler/search' === $pathinfo) {
return array ( '_controller' => 'web_profiler.controller.profiler:searchAction', '_route' => '_profiler_search',);
}
// _profiler_search_bar
if ('/_profiler/search_bar' === $pathinfo) {
return array ( '_controller' => 'web_profiler.controller.profiler:searchBarAction', '_route' => '_profiler_search_bar',);
}
}
// _profiler_phpinfo
if ('/_profiler/phpinfo' === $pathinfo) {
return array ( '_controller' => 'web_profiler.controller.profiler:phpinfoAction', '_route' => '_profiler_phpinfo',);
}
// _profiler_search_results
if (preg_match('#^/_profiler/(?P<token>[^/]++)/search/results$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler_search_results']), array ( '_controller' => 'web_profiler.controller.profiler:searchResultsAction',));
}
// _profiler_open_file
if ('/_profiler/open' === $pathinfo) {
return array ( '_controller' => 'web_profiler.controller.profiler:openAction', '_route' => '_profiler_open_file',);
}
// _profiler
if (preg_match('#^/_profiler/(?P<token>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler']), array ( '_controller' => 'web_profiler.controller.profiler:panelAction',));
}
// _profiler_router
if (preg_match('#^/_profiler/(?P<token>[^/]++)/router$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler_router']), array ( '_controller' => 'web_profiler.controller.router:panelAction',));
}
// _profiler_exception
if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler_exception']), array ( '_controller' => 'web_profiler.controller.exception:showAction',));
}
// _profiler_exception_css
if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception\\.css$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler_exception_css']), array ( '_controller' => 'web_profiler.controller.exception:cssAction',));
}
}
// _twig_error_test
if (0 === strpos($pathinfo, '/_error') && preg_match('#^/_error/(?P<code>\\d+)(?:\\.(?P<_format>[^/]++))?$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => '_twig_error_test']), array ( '_controller' => 'twig.controller.preview_error:previewErrorPageAction', '_format' => 'html',));
}
}
// timer
if ('' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\TimerController::formAction', '_route' => 'timer',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_timer;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'timer'));
}
return $ret;
}
not_timer:
if (0 === strpos($pathinfo, '/request')) {
if (0 === strpos($pathinfo, '/request/lookup')) {
// timer_account_lookup
if ('/request/lookup/account' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\TimerController::timerLookupAccountAction', '_route' => 'timer_account_lookup',);
}
// timer_project_lookup
if (0 === strpos($pathinfo, '/request/lookup/project') && preg_match('#^/request/lookup/project/(?P<accountID>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'timer_project_lookup']), array ( '_controller' => 'AppBundle\\Controller\\TimerController::timerLookupProjectAction',));
}
// timer_task_lookup
if (0 === strpos($pathinfo, '/request/lookup/task') && preg_match('#^/request/lookup/task/(?P<accountID>[^/]++)/(?P<projectID>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'timer_task_lookup']), array ( '_controller' => 'AppBundle\\Controller\\TimerController::timerLookupTaskAction',));
}
}
// timer_log_time
if ('/request/log-time' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\TimerController::logTime', '_route' => 'timer_log_time',);
}
// timer_start_entry
if ('/request/start-entry' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\TimerController::timerStartEntry', '_route' => 'timer_start_entry',);
}
// timer_stop_entry
if ('/request/stop-entry' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\TimerController::timerStopEntry', '_route' => 'timer_stop_entry',);
}
// timer_recently_logged
if ('/request/recently-logged' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\TimerController::recentlyLogged', '_route' => 'timer_recently_logged',);
}
// remove_taskless_time
if ('/request/remove-taskless-time' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\TimerController::removeTasklessTime', '_route' => 'remove_taskless_time',);
}
if (0 === strpos($pathinfo, '/request/day-queue')) {
// timer_day_queue
if ('/request/day-queue' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\TimerController::dayQueue', '_route' => 'timer_day_queue',);
}
// timer_day_queue_add
if ('/request/day-queue/add' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\TimerController::dayQueueAdd', '_route' => 'timer_day_queue_add',);
}
// timer_day_queue_remove
if ('/request/day-queue/remove' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\TimerController::dayQueueRemove', '_route' => 'timer_day_queue_remove',);
}
// timer_day_queue_reorder
if ('/request/day-queue/reorder' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\TimerController::dayQueueReorder', '_route' => 'timer_day_queue_reorder',);
}
}
// timer_current_entry
if ('/request/current-entry' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\TimerController::currentEntry', '_route' => 'timer_current_entry',);
}
// app_timer_updateentry
if ('/request/update-entry' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\TimerController::updateEntry', '_route' => 'app_timer_updateentry',);
}
}
if ('/' === $pathinfo && !$allow) {
throw new Symfony\Component\Routing\Exception\NoConfigurationException();
}
throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
}
}