<?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',));
}
}
// root
if ('' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'Symfony\\Bundle\\FrameworkBundle\\Controller\\RedirectController::redirectAction', 'route' => 'login', 'permanent' => true, '_route' => 'root',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_root;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'root'));
}
return $ret;
}
not_root:
if (0 === strpos($pathinfo, '/a')) {
if (0 === strpos($pathinfo, '/admin')) {
if (0 === strpos($pathinfo, '/admin/activity')) {
// admin_activity_index
if ('/admin/activity' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\ActivityController::indexAction', '_route' => 'admin_activity_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_admin_activity_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'admin_activity_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_activity_index;
}
return $ret;
}
not_admin_activity_index:
// admin_activity_show
if (preg_match('#^/admin/activity/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_activity_show']), array ( '_controller' => 'AppBundle\\Controller\\ActivityController::showAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_activity_show;
}
return $ret;
}
not_admin_activity_show:
// admin_activity_delete
if (preg_match('#^/admin/activity/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_activity_delete']), array ( '_controller' => 'AppBundle\\Controller\\ActivityController::deleteAction',));
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_admin_activity_delete;
}
return $ret;
}
not_admin_activity_delete:
}
elseif (0 === strpos($pathinfo, '/admin/content')) {
// admin_content_index
if ('/admin/content' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\ContentController::indexAction', '_route' => 'admin_content_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_admin_content_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'admin_content_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_content_index;
}
return $ret;
}
not_admin_content_index:
// admin_content_new
if ('/admin/content/new' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\ContentController::newAction', '_route' => 'admin_content_new',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_admin_content_new;
}
return $ret;
}
not_admin_content_new:
// admin_content_show
if (preg_match('#^/admin/content/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_content_show']), array ( '_controller' => 'AppBundle\\Controller\\ContentController::showAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_content_show;
}
return $ret;
}
not_admin_content_show:
// admin_content_edit
if (preg_match('#^/admin/content/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_content_edit']), array ( '_controller' => 'AppBundle\\Controller\\ContentController::editAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_admin_content_edit;
}
return $ret;
}
not_admin_content_edit:
// admin_content_delete
if (preg_match('#^/admin/content/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_content_delete']), array ( '_controller' => 'AppBundle\\Controller\\ContentController::deleteAction',));
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_admin_content_delete;
}
return $ret;
}
not_admin_content_delete:
if (0 === strpos($pathinfo, '/admin/content/revision')) {
// admin_content_revision_index
if ('/admin/content/revision' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\ContentRevisionController::indexAction', '_route' => 'admin_content_revision_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_admin_content_revision_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'admin_content_revision_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_content_revision_index;
}
return $ret;
}
not_admin_content_revision_index:
// admin_content_revision_show
if (preg_match('#^/admin/content/revision/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_content_revision_show']), array ( '_controller' => 'AppBundle\\Controller\\ContentRevisionController::showAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_content_revision_show;
}
return $ret;
}
not_admin_content_revision_show:
}
}
elseif (0 === strpos($pathinfo, '/admin/courses')) {
// admin_courses_index
if ('/admin/courses' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\CourseController::indexAction', '_route' => 'admin_courses_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_admin_courses_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'admin_courses_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_courses_index;
}
return $ret;
}
not_admin_courses_index:
// admin_courses_new
if ('/admin/courses/new' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\CourseController::newAction', '_route' => 'admin_courses_new',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_admin_courses_new;
}
return $ret;
}
not_admin_courses_new:
// admin_courses_show
if (preg_match('#^/admin/courses/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_courses_show']), array ( '_controller' => 'AppBundle\\Controller\\CourseController::showAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_courses_show;
}
return $ret;
}
not_admin_courses_show:
// admin_courses_edit
if (preg_match('#^/admin/courses/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_courses_edit']), array ( '_controller' => 'AppBundle\\Controller\\CourseController::editAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_admin_courses_edit;
}
return $ret;
}
not_admin_courses_edit:
// admin_courses_delete
if (preg_match('#^/admin/courses/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_courses_delete']), array ( '_controller' => 'AppBundle\\Controller\\CourseController::deleteAction',));
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_admin_courses_delete;
}
return $ret;
}
not_admin_courses_delete:
}
elseif (0 === strpos($pathinfo, '/admin/grades')) {
// admin_grades_index
if ('/admin/grades' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\GradeController::indexAction', '_route' => 'admin_grades_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_admin_grades_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'admin_grades_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_grades_index;
}
return $ret;
}
not_admin_grades_index:
// admin_grades_new
if ('/admin/grades/new' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\GradeController::newAction', '_route' => 'admin_grades_new',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_admin_grades_new;
}
return $ret;
}
not_admin_grades_new:
// admin_grades_show
if (preg_match('#^/admin/grades/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_grades_show']), array ( '_controller' => 'AppBundle\\Controller\\GradeController::showAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_grades_show;
}
return $ret;
}
not_admin_grades_show:
// admin_grades_edit
if (preg_match('#^/admin/grades/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_grades_edit']), array ( '_controller' => 'AppBundle\\Controller\\GradeController::editAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_admin_grades_edit;
}
return $ret;
}
not_admin_grades_edit:
// admin_grades_delete
if (preg_match('#^/admin/grades/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_grades_delete']), array ( '_controller' => 'AppBundle\\Controller\\GradeController::deleteAction',));
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_admin_grades_delete;
}
return $ret;
}
not_admin_grades_delete:
}
// login
if ('/admin/login' === $pathinfo) {
return array ( '_controller' => 'AppBundle\\Controller\\LoginController::loginAction', '_route' => 'login',);
}
// logout
if ('/admin/logout' === $pathinfo) {
return ['_route' => 'logout'];
}
if (0 === strpos($pathinfo, '/admin/page')) {
// admin_page_index
if ('/admin/page' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\PageController::indexAction', '_route' => 'admin_page_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_admin_page_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'admin_page_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_page_index;
}
return $ret;
}
not_admin_page_index:
// admin_page_new
if ('/admin/page/new' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\PageController::newAction', '_route' => 'admin_page_new',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_admin_page_new;
}
return $ret;
}
not_admin_page_new:
// admin_page_show
if (preg_match('#^/admin/page/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_page_show']), array ( '_controller' => 'AppBundle\\Controller\\PageController::showAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_page_show;
}
return $ret;
}
not_admin_page_show:
// admin_page_edit
if (preg_match('#^/admin/page/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_page_edit']), array ( '_controller' => 'AppBundle\\Controller\\PageController::editAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_admin_page_edit;
}
return $ret;
}
not_admin_page_edit:
// admin_page_delete
if (preg_match('#^/admin/page/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_page_delete']), array ( '_controller' => 'AppBundle\\Controller\\PageController::deleteAction',));
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_admin_page_delete;
}
return $ret;
}
not_admin_page_delete:
if (0 === strpos($pathinfo, '/admin/page/meta')) {
// admin_page_meta_index
if ('/admin/page/meta' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\PageMetaController::indexAction', '_route' => 'admin_page_meta_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_admin_page_meta_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'admin_page_meta_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_page_meta_index;
}
return $ret;
}
not_admin_page_meta_index:
// admin_page_meta_new
if ('/admin/page/meta/new' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\PageMetaController::newAction', '_route' => 'admin_page_meta_new',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_admin_page_meta_new;
}
return $ret;
}
not_admin_page_meta_new:
// admin_page_meta_show
if (preg_match('#^/admin/page/meta/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_page_meta_show']), array ( '_controller' => 'AppBundle\\Controller\\PageMetaController::showAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_page_meta_show;
}
return $ret;
}
not_admin_page_meta_show:
// admin_page_meta_edit
if (preg_match('#^/admin/page/meta/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_page_meta_edit']), array ( '_controller' => 'AppBundle\\Controller\\PageMetaController::editAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_admin_page_meta_edit;
}
return $ret;
}
not_admin_page_meta_edit:
// admin_page_meta_delete
if (preg_match('#^/admin/page/meta/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_page_meta_delete']), array ( '_controller' => 'AppBundle\\Controller\\PageMetaController::deleteAction',));
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_admin_page_meta_delete;
}
return $ret;
}
not_admin_page_meta_delete:
if (0 === strpos($pathinfo, '/admin/page/meta/type')) {
// admin_page_meta_type_index
if ('/admin/page/meta/type' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\PageMetaTypeController::indexAction', '_route' => 'admin_page_meta_type_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_admin_page_meta_type_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'admin_page_meta_type_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_page_meta_type_index;
}
return $ret;
}
not_admin_page_meta_type_index:
// admin_page_meta_type_new
if ('/admin/page/meta/type/new' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\PageMetaTypeController::newAction', '_route' => 'admin_page_meta_type_new',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_admin_page_meta_type_new;
}
return $ret;
}
not_admin_page_meta_type_new:
// admin_page_meta_type_show
if (preg_match('#^/admin/page/meta/type/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_page_meta_type_show']), array ( '_controller' => 'AppBundle\\Controller\\PageMetaTypeController::showAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_page_meta_type_show;
}
return $ret;
}
not_admin_page_meta_type_show:
// admin_page_meta_type_edit
if (preg_match('#^/admin/page/meta/type/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_page_meta_type_edit']), array ( '_controller' => 'AppBundle\\Controller\\PageMetaTypeController::editAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_admin_page_meta_type_edit;
}
return $ret;
}
not_admin_page_meta_type_edit:
// admin_page_meta_type_delete
if (preg_match('#^/admin/page/meta/type/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_page_meta_type_delete']), array ( '_controller' => 'AppBundle\\Controller\\PageMetaTypeController::deleteAction',));
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_admin_page_meta_type_delete;
}
return $ret;
}
not_admin_page_meta_type_delete:
}
}
}
// admin_progress_index
if ('/admin/progress' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\ProgressController::indexAction', '_route' => 'admin_progress_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_admin_progress_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'admin_progress_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_progress_index;
}
return $ret;
}
not_admin_progress_index:
if (0 === strpos($pathinfo, '/admin/resource')) {
// admin_resource_index
if ('/admin/resource' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\ResourceController::indexAction', '_route' => 'admin_resource_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_admin_resource_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'admin_resource_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_resource_index;
}
return $ret;
}
not_admin_resource_index:
// admin_resource_new
if ('/admin/resource/new' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\ResourceController::newAction', '_route' => 'admin_resource_new',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_admin_resource_new;
}
return $ret;
}
not_admin_resource_new:
// admin_resource_show
if (preg_match('#^/admin/resource/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_resource_show']), array ( '_controller' => 'AppBundle\\Controller\\ResourceController::showAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_resource_show;
}
return $ret;
}
not_admin_resource_show:
// admin_resource_download
if (preg_match('#^/admin/resource/(?P<id>[^/]++)/download$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_resource_download']), array ( '_controller' => 'AppBundle\\Controller\\ResourceController::downloadResource',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_resource_download;
}
return $ret;
}
not_admin_resource_download:
// admin_resource_edit
if (preg_match('#^/admin/resource/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_resource_edit']), array ( '_controller' => 'AppBundle\\Controller\\ResourceController::editAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_admin_resource_edit;
}
return $ret;
}
not_admin_resource_edit:
// admin_resource_delete
if (preg_match('#^/admin/resource/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_resource_delete']), array ( '_controller' => 'AppBundle\\Controller\\ResourceController::deleteAction',));
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_admin_resource_delete;
}
return $ret;
}
not_admin_resource_delete:
if (0 === strpos($pathinfo, '/admin/resource/type')) {
// admin_resource_type_index
if ('/admin/resource/type' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\ResourceTypeController::indexAction', '_route' => 'admin_resource_type_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_admin_resource_type_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'admin_resource_type_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_resource_type_index;
}
return $ret;
}
not_admin_resource_type_index:
// admin_resource_type_new
if ('/admin/resource/type/new' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\ResourceTypeController::newAction', '_route' => 'admin_resource_type_new',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_admin_resource_type_new;
}
return $ret;
}
not_admin_resource_type_new:
// admin_resource_type_show
if (preg_match('#^/admin/resource/type/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_resource_type_show']), array ( '_controller' => 'AppBundle\\Controller\\ResourceTypeController::showAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_resource_type_show;
}
return $ret;
}
not_admin_resource_type_show:
// admin_resource_type_edit
if (preg_match('#^/admin/resource/type/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_resource_type_edit']), array ( '_controller' => 'AppBundle\\Controller\\ResourceTypeController::editAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_admin_resource_type_edit;
}
return $ret;
}
not_admin_resource_type_edit:
// admin_resource_type_delete
if (preg_match('#^/admin/resource/type/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_resource_type_delete']), array ( '_controller' => 'AppBundle\\Controller\\ResourceTypeController::deleteAction',));
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_admin_resource_type_delete;
}
return $ret;
}
not_admin_resource_type_delete:
}
}
elseif (0 === strpos($pathinfo, '/admin/subscriptions')) {
// admin_subscriptions_index
if ('/admin/subscriptions' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SubscriptionController::indexAction', '_route' => 'admin_subscriptions_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_admin_subscriptions_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'admin_subscriptions_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_subscriptions_index;
}
return $ret;
}
not_admin_subscriptions_index:
// admin_subscriptions_new
if ('/admin/subscriptions/new' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SubscriptionController::newAction', '_route' => 'admin_subscriptions_new',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_admin_subscriptions_new;
}
return $ret;
}
not_admin_subscriptions_new:
// admin_subscriptions_show
if (preg_match('#^/admin/subscriptions/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_subscriptions_show']), array ( '_controller' => 'AppBundle\\Controller\\SubscriptionController::showAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_subscriptions_show;
}
return $ret;
}
not_admin_subscriptions_show:
// admin_subscriptions_edit
if (preg_match('#^/admin/subscriptions/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_subscriptions_edit']), array ( '_controller' => 'AppBundle\\Controller\\SubscriptionController::editAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_admin_subscriptions_edit;
}
return $ret;
}
not_admin_subscriptions_edit:
// admin_subscriptions_delete
if (preg_match('#^/admin/subscriptions/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_subscriptions_delete']), array ( '_controller' => 'AppBundle\\Controller\\SubscriptionController::deleteAction',));
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_admin_subscriptions_delete;
}
return $ret;
}
not_admin_subscriptions_delete:
}
elseif (0 === strpos($pathinfo, '/admin/tag')) {
// admin_tag_index
if ('/admin/tag' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\TagController::indexAction', '_route' => 'admin_tag_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_admin_tag_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'admin_tag_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_tag_index;
}
return $ret;
}
not_admin_tag_index:
// admin_tag_new
if ('/admin/tag/new' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\TagController::newAction', '_route' => 'admin_tag_new',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_admin_tag_new;
}
return $ret;
}
not_admin_tag_new:
// admin_tag_show
if (preg_match('#^/admin/tag/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_tag_show']), array ( '_controller' => 'AppBundle\\Controller\\TagController::showAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_tag_show;
}
return $ret;
}
not_admin_tag_show:
// admin_tag_edit
if (preg_match('#^/admin/tag/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_tag_edit']), array ( '_controller' => 'AppBundle\\Controller\\TagController::editAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_admin_tag_edit;
}
return $ret;
}
not_admin_tag_edit:
// admin_tag_delete
if (preg_match('#^/admin/tag/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_tag_delete']), array ( '_controller' => 'AppBundle\\Controller\\TagController::deleteAction',));
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_admin_tag_delete;
}
return $ret;
}
not_admin_tag_delete:
}
elseif (0 === strpos($pathinfo, '/admin/user')) {
// admin_user_index
if ('/admin/user' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\UserController::indexAction', '_route' => 'admin_user_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_admin_user_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'admin_user_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_user_index;
}
return $ret;
}
not_admin_user_index:
// admin_user_new
if ('/admin/user/new' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\UserController::newAction', '_route' => 'admin_user_new',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_admin_user_new;
}
return $ret;
}
not_admin_user_new:
// admin_user_show
if (preg_match('#^/admin/user/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_user_show']), array ( '_controller' => 'AppBundle\\Controller\\UserController::showAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_user_show;
}
return $ret;
}
not_admin_user_show:
// admin_user_edit
if (preg_match('#^/admin/user/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_user_edit']), array ( '_controller' => 'AppBundle\\Controller\\UserController::editAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_admin_user_edit;
}
return $ret;
}
not_admin_user_edit:
// admin_user_password
if (preg_match('#^/admin/user/(?P<id>[^/]++)/password$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_user_password']), array ( '_controller' => 'AppBundle\\Controller\\UserController::passwordAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_admin_user_password;
}
return $ret;
}
not_admin_user_password:
// admin_user_delete
if (preg_match('#^/admin/user/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_user_delete']), array ( '_controller' => 'AppBundle\\Controller\\UserController::deleteAction',));
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_admin_user_delete;
}
return $ret;
}
not_admin_user_delete:
if (0 === strpos($pathinfo, '/admin/user/info')) {
// admin_user_info_index
if ('/admin/user/info' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\UserInfoController::indexAction', '_route' => 'admin_user_info_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_admin_user_info_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'admin_user_info_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_user_info_index;
}
return $ret;
}
not_admin_user_info_index:
// admin_user_info_new
if ('/admin/user/info/new' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\UserInfoController::newAction', '_route' => 'admin_user_info_new',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_admin_user_info_new;
}
return $ret;
}
not_admin_user_info_new:
// admin_user_info_show
if (preg_match('#^/admin/user/info/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_user_info_show']), array ( '_controller' => 'AppBundle\\Controller\\UserInfoController::showAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_user_info_show;
}
return $ret;
}
not_admin_user_info_show:
// admin_user_info_edit
if (preg_match('#^/admin/user/info/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_user_info_edit']), array ( '_controller' => 'AppBundle\\Controller\\UserInfoController::editAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_admin_user_info_edit;
}
return $ret;
}
not_admin_user_info_edit:
// admin_user_info_delete
if (preg_match('#^/admin/user/info/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_user_info_delete']), array ( '_controller' => 'AppBundle\\Controller\\UserInfoController::deleteAction',));
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_admin_user_info_delete;
}
return $ret;
}
not_admin_user_info_delete:
if (0 === strpos($pathinfo, '/admin/user/info/type')) {
// admin_user_info_type_index
if ('/admin/user/info/type' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\UserInfoTypeController::indexAction', '_route' => 'admin_user_info_type_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_admin_user_info_type_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'admin_user_info_type_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_user_info_type_index;
}
return $ret;
}
not_admin_user_info_type_index:
// admin_user_info_type_new
if ('/admin/user/info/type/new' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\UserInfoTypeController::newAction', '_route' => 'admin_user_info_type_new',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_admin_user_info_type_new;
}
return $ret;
}
not_admin_user_info_type_new:
// admin_user_info_type_show
if (preg_match('#^/admin/user/info/type/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_user_info_type_show']), array ( '_controller' => 'AppBundle\\Controller\\UserInfoTypeController::showAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_user_info_type_show;
}
return $ret;
}
not_admin_user_info_type_show:
// admin_user_info_type_edit
if (preg_match('#^/admin/user/info/type/(?P<id>[^/]++)/edit$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_user_info_type_edit']), array ( '_controller' => 'AppBundle\\Controller\\UserInfoTypeController::editAction',));
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_admin_user_info_type_edit;
}
return $ret;
}
not_admin_user_info_type_edit:
// admin_user_info_type_delete
if (preg_match('#^/admin/user/info/type/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_user_info_type_delete']), array ( '_controller' => 'AppBundle\\Controller\\UserInfoTypeController::deleteAction',));
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_admin_user_info_type_delete;
}
return $ret;
}
not_admin_user_info_type_delete:
}
}
}
elseif (0 === strpos($pathinfo, '/admin/mail')) {
// admin_mail_index
if ('/admin/mail' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\UserMailController::indexAction', '_route' => 'admin_mail_index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_admin_mail_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'admin_mail_index'));
}
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_mail_index;
}
return $ret;
}
not_admin_mail_index:
// admin_mail_new
if ('/admin/mail/new' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\UserMailController::newAction', '_route' => 'admin_mail_new',);
if (!in_array($canonicalMethod, ['GET', 'POST'])) {
$allow = array_merge($allow, ['GET', 'POST']);
goto not_admin_mail_new;
}
return $ret;
}
not_admin_mail_new:
// admin_mail_show
if (preg_match('#^/admin/mail/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_mail_show']), array ( '_controller' => 'AppBundle\\Controller\\UserMailController::showAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admin_mail_show;
}
return $ret;
}
not_admin_mail_show:
// admin_mail_delete
if (preg_match('#^/admin/mail/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_mail_delete']), array ( '_controller' => 'AppBundle\\Controller\\UserMailController::deleteAction',));
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_admin_mail_delete;
}
return $ret;
}
not_admin_mail_delete:
}
}
elseif (0 === strpos($pathinfo, '/api')) {
// app_jwt_newtoken
if ('/api/tokens' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\JWTController::newTokenAction', '_route' => 'app_jwt_newtoken',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_app_jwt_newtoken;
}
return $ret;
}
not_app_jwt_newtoken:
// api_entrypoint
if (preg_match('#^/api(?:/(?P<index>index)(?:\\.(?P<_format>[^/]++))?)?$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'api_entrypoint']), array ( '_controller' => 'api_platform.action.entrypoint', '_format' => '', '_api_respond' => '1', 'index' => 'index',));
}
// api_doc
if (0 === strpos($pathinfo, '/api/docs') && preg_match('#^/api/docs(?:\\.(?P<_format>[^/]++))?$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'api_doc']), array ( '_controller' => 'api_platform.action.documentation', '_api_respond' => '1', '_format' => '',));
}
if (0 === strpos($pathinfo, '/api/user')) {
// api_users_get_item
if (0 === strpos($pathinfo, '/api/users') && preg_match('#^/api/users/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'api_users_get_item']), array ( '_controller' => 'api_platform.action.get_item', '_format' => NULL, '_api_resource_class' => 'AppBundle\\Entity\\User', '_api_item_operation_name' => 'get',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_api_users_get_item;
}
return $ret;
}
not_api_users_get_item:
// api_user_info_types_get_item
if (0 === strpos($pathinfo, '/api/user_info_types') && preg_match('#^/api/user_info_types/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'api_user_info_types_get_item']), array ( '_controller' => 'api_platform.action.get_item', '_format' => NULL, '_api_resource_class' => 'AppBundle\\Entity\\UserInfoType', '_api_item_operation_name' => 'get',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_api_user_info_types_get_item;
}
return $ret;
}
not_api_user_info_types_get_item:
// api_user_infos_get_item
if (0 === strpos($pathinfo, '/api/user_infos') && preg_match('#^/api/user_infos/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'api_user_infos_get_item']), array ( '_controller' => 'api_platform.action.get_item', '_format' => NULL, '_api_resource_class' => 'AppBundle\\Entity\\UserInfo', '_api_item_operation_name' => 'get',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_api_user_infos_get_item;
}
return $ret;
}
not_api_user_infos_get_item:
}
// api_courses_get_item
if (0 === strpos($pathinfo, '/api/courses') && preg_match('#^/api/courses/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'api_courses_get_item']), array ( '_controller' => 'api_platform.action.get_item', '_format' => NULL, '_api_resource_class' => 'AppBundle\\Entity\\Course', '_api_item_operation_name' => 'get',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_api_courses_get_item;
}
return $ret;
}
not_api_courses_get_item:
// api_tags_get_item
if (0 === strpos($pathinfo, '/api/tags') && preg_match('#^/api/tags/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'api_tags_get_item']), array ( '_controller' => 'api_platform.action.get_item', '_format' => NULL, '_api_resource_class' => 'AppBundle\\Entity\\Tag', '_api_item_operation_name' => 'get',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_api_tags_get_item;
}
return $ret;
}
not_api_tags_get_item:
if (0 === strpos($pathinfo, '/api/activities')) {
// api_activities_post_collection
if (preg_match('#^/api/activities(?:\\.(?P<_format>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'api_activities_post_collection']), array ( '_controller' => 'api_platform.action.post_collection', '_format' => NULL, '_api_resource_class' => 'AppBundle\\Entity\\Activity', '_api_collection_operation_name' => 'post',));
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_api_activities_post_collection;
}
return $ret;
}
not_api_activities_post_collection:
// api_activities_get_item
if (preg_match('#^/api/activities/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'api_activities_get_item']), array ( '_controller' => 'api_platform.action.get_item', '_format' => NULL, '_api_resource_class' => 'AppBundle\\Entity\\Activity', '_api_item_operation_name' => 'get',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_api_activities_get_item;
}
return $ret;
}
not_api_activities_get_item:
}
elseif (0 === strpos($pathinfo, '/api/resource_types')) {
// api_resource_types_get_collection
if (preg_match('#^/api/resource_types(?:\\.(?P<_format>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'api_resource_types_get_collection']), array ( '_controller' => 'api_platform.action.get_collection', '_format' => NULL, '_api_resource_class' => 'AppBundle\\Entity\\ResourceType', '_api_collection_operation_name' => 'get',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_api_resource_types_get_collection;
}
return $ret;
}
not_api_resource_types_get_collection:
// api_resource_types_get_item
if (preg_match('#^/api/resource_types/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'api_resource_types_get_item']), array ( '_controller' => 'api_platform.action.get_item', '_format' => NULL, '_api_resource_class' => 'AppBundle\\Entity\\ResourceType', '_api_item_operation_name' => 'get',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_api_resource_types_get_item;
}
return $ret;
}
not_api_resource_types_get_item:
}
elseif (0 === strpos($pathinfo, '/api/resources')) {
// api_resources_get_collection
if (preg_match('#^/api/resources(?:\\.(?P<_format>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'api_resources_get_collection']), array ( '_controller' => 'api_platform.action.get_collection', '_format' => NULL, '_api_resource_class' => 'AppBundle\\Entity\\Resource', '_api_collection_operation_name' => 'get',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_api_resources_get_collection;
}
return $ret;
}
not_api_resources_get_collection:
// api_resources_get_item
if (preg_match('#^/api/resources/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'api_resources_get_item']), array ( '_controller' => 'api_platform.action.get_item', '_format' => NULL, '_api_resource_class' => 'AppBundle\\Entity\\Resource', '_api_item_operation_name' => 'get',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_api_resources_get_item;
}
return $ret;
}
not_api_resources_get_item:
}
elseif (0 === strpos($pathinfo, '/api/grades')) {
// api_grades_post_collection
if (preg_match('#^/api/grades(?:\\.(?P<_format>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'api_grades_post_collection']), array ( '_controller' => 'api_platform.action.post_collection', '_format' => NULL, '_api_resource_class' => 'AppBundle\\Entity\\Grade', '_api_collection_operation_name' => 'post',));
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_api_grades_post_collection;
}
return $ret;
}
not_api_grades_post_collection:
// api_grades_get_item
if (preg_match('#^/api/grades/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'api_grades_get_item']), array ( '_controller' => 'api_platform.action.get_item', '_format' => NULL, '_api_resource_class' => 'AppBundle\\Entity\\Grade', '_api_item_operation_name' => 'get',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_api_grades_get_item;
}
return $ret;
}
not_api_grades_get_item:
}
// api_get_token
if ('/api/getToken' === $pathinfo) {
return ['_route' => 'api_get_token'];
}
// api_subscriptions_get_item
if (0 === strpos($pathinfo, '/api/subscriptions') && preg_match('#^/api/subscriptions/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'api_subscriptions_get_item']), array ( '_controller' => 'api_platform.action.get_item', '_format' => NULL, '_api_resource_class' => 'AppBundle\\Entity\\Subscription', '_api_item_operation_name' => 'get',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_api_subscriptions_get_item;
}
return $ret;
}
not_api_subscriptions_get_item:
}
elseif (0 === strpos($pathinfo, '/account/reset')) {
// request_password_reset
if ('/account/reset' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\LoginController::resetPasswordAction', '_route' => 'request_password_reset',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_request_password_reset;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'request_password_reset'));
}
return $ret;
}
not_request_password_reset:
// password_reset_confirm
if (0 === strpos($pathinfo, '/account/reset/{') && preg_match('#^/account/reset/\\{(?P<token>[^/]+)\\}$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'password_reset_confirm']), array ( '_controller' => 'AppBundle\\Controller\\LoginController::resetPasswordConfirmAction',));
if (!in_array($canonicalMethod, ['POST', 'GET'])) {
$allow = array_merge($allow, ['POST', 'GET']);
goto not_password_reset_confirm;
}
return $ret;
}
not_password_reset_confirm:
}
}
elseif (0 === strpos($pathinfo, '/site')) {
// app_routing_sitemap
if ('/sitemap.xml' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\RoutingController::sitemapAction', '_route' => 'app_routing_sitemap',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_app_routing_sitemap;
}
return $ret;
}
not_app_routing_sitemap:
// app_utilities_passwordreset
if ('/site/reset' === $pathinfo) {
$ret = array ( '_format' => 'json', '_controller' => 'AppBundle\\Controller\\UtilitiesController::passwordResetAction', '_route' => 'app_utilities_passwordreset',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_app_utilities_passwordreset;
}
return $ret;
}
not_app_utilities_passwordreset:
// app_utilities_register
if ('/site/register' === $pathinfo) {
$ret = array ( '_format' => 'json', '_controller' => 'AppBundle\\Controller\\UtilitiesController::registerAction', '_route' => 'app_utilities_register',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_app_utilities_register;
}
return $ret;
}
not_app_utilities_register:
// app_utilities_sitecontact
if ('/site/contact' === $pathinfo) {
$ret = array ( '_format' => 'json', '_controller' => 'AppBundle\\Controller\\UtilitiesController::siteContactAction', '_route' => 'app_utilities_sitecontact',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_app_utilities_sitecontact;
}
return $ret;
}
not_app_utilities_sitecontact:
}
if ('/' === $pathinfo && !$allow) {
throw new Symfony\Component\Routing\Exception\NoConfigurationException();
}
throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
}
}