var/cache/dev/appDevDebugProjectContainerUrlMatcher.php line 1547

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.         // root
  90.         if ('' === $trimmedPathinfo) {
  91.             $ret = array (  '_controller' => 'Symfony\\Bundle\\FrameworkBundle\\Controller\\RedirectController::redirectAction',  'route' => 'login',  'permanent' => true,  '_route' => 'root',);
  92.             if ('/' === substr($pathinfo, -1)) {
  93.                 // no-op
  94.             } elseif ('GET' !== $canonicalMethod) {
  95.                 goto not_root;
  96.             } else {
  97.                 return array_replace($ret$this->redirect($rawPathinfo.'/''root'));
  98.             }
  99.             return $ret;
  100.         }
  101.         not_root:
  102.         if (=== strpos($pathinfo'/a')) {
  103.             if (=== strpos($pathinfo'/admin')) {
  104.                 if (=== strpos($pathinfo'/admin/activity')) {
  105.                     // admin_activity_index
  106.                     if ('/admin/activity' === $trimmedPathinfo) {
  107.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\ActivityController::indexAction',  '_route' => 'admin_activity_index',);
  108.                         if ('/' === substr($pathinfo, -1)) {
  109.                             // no-op
  110.                         } elseif ('GET' !== $canonicalMethod) {
  111.                             goto not_admin_activity_index;
  112.                         } else {
  113.                             return array_replace($ret$this->redirect($rawPathinfo.'/''admin_activity_index'));
  114.                         }
  115.                         if (!in_array($canonicalMethod, ['GET'])) {
  116.                             $allow array_merge($allow, ['GET']);
  117.                             goto not_admin_activity_index;
  118.                         }
  119.                         return $ret;
  120.                     }
  121.                     not_admin_activity_index:
  122.                     // admin_activity_show
  123.                     if (preg_match('#^/admin/activity/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  124.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_activity_show']), array (  '_controller' => 'AppBundle\\Controller\\ActivityController::showAction',));
  125.                         if (!in_array($canonicalMethod, ['GET'])) {
  126.                             $allow array_merge($allow, ['GET']);
  127.                             goto not_admin_activity_show;
  128.                         }
  129.                         return $ret;
  130.                     }
  131.                     not_admin_activity_show:
  132.                     // admin_activity_delete
  133.                     if (preg_match('#^/admin/activity/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  134.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_activity_delete']), array (  '_controller' => 'AppBundle\\Controller\\ActivityController::deleteAction',));
  135.                         if (!in_array($requestMethod, ['DELETE'])) {
  136.                             $allow array_merge($allow, ['DELETE']);
  137.                             goto not_admin_activity_delete;
  138.                         }
  139.                         return $ret;
  140.                     }
  141.                     not_admin_activity_delete:
  142.                 }
  143.                 elseif (=== strpos($pathinfo'/admin/content')) {
  144.                     // admin_content_index
  145.                     if ('/admin/content' === $trimmedPathinfo) {
  146.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\ContentController::indexAction',  '_route' => 'admin_content_index',);
  147.                         if ('/' === substr($pathinfo, -1)) {
  148.                             // no-op
  149.                         } elseif ('GET' !== $canonicalMethod) {
  150.                             goto not_admin_content_index;
  151.                         } else {
  152.                             return array_replace($ret$this->redirect($rawPathinfo.'/''admin_content_index'));
  153.                         }
  154.                         if (!in_array($canonicalMethod, ['GET'])) {
  155.                             $allow array_merge($allow, ['GET']);
  156.                             goto not_admin_content_index;
  157.                         }
  158.                         return $ret;
  159.                     }
  160.                     not_admin_content_index:
  161.                     // admin_content_new
  162.                     if ('/admin/content/new' === $pathinfo) {
  163.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\ContentController::newAction',  '_route' => 'admin_content_new',);
  164.                         if (!in_array($canonicalMethod, ['GET''POST'])) {
  165.                             $allow array_merge($allow, ['GET''POST']);
  166.                             goto not_admin_content_new;
  167.                         }
  168.                         return $ret;
  169.                     }
  170.                     not_admin_content_new:
  171.                     // admin_content_show
  172.                     if (preg_match('#^/admin/content/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  173.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_content_show']), array (  '_controller' => 'AppBundle\\Controller\\ContentController::showAction',));
  174.                         if (!in_array($canonicalMethod, ['GET'])) {
  175.                             $allow array_merge($allow, ['GET']);
  176.                             goto not_admin_content_show;
  177.                         }
  178.                         return $ret;
  179.                     }
  180.                     not_admin_content_show:
  181.                     // admin_content_edit
  182.                     if (preg_match('#^/admin/content/(?P<id>[^/]++)/edit$#sD'$pathinfo$matches)) {
  183.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_content_edit']), array (  '_controller' => 'AppBundle\\Controller\\ContentController::editAction',));
  184.                         if (!in_array($canonicalMethod, ['GET''POST'])) {
  185.                             $allow array_merge($allow, ['GET''POST']);
  186.                             goto not_admin_content_edit;
  187.                         }
  188.                         return $ret;
  189.                     }
  190.                     not_admin_content_edit:
  191.                     // admin_content_delete
  192.                     if (preg_match('#^/admin/content/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  193.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_content_delete']), array (  '_controller' => 'AppBundle\\Controller\\ContentController::deleteAction',));
  194.                         if (!in_array($requestMethod, ['DELETE'])) {
  195.                             $allow array_merge($allow, ['DELETE']);
  196.                             goto not_admin_content_delete;
  197.                         }
  198.                         return $ret;
  199.                     }
  200.                     not_admin_content_delete:
  201.                     if (=== strpos($pathinfo'/admin/content/revision')) {
  202.                         // admin_content_revision_index
  203.                         if ('/admin/content/revision' === $trimmedPathinfo) {
  204.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\ContentRevisionController::indexAction',  '_route' => 'admin_content_revision_index',);
  205.                             if ('/' === substr($pathinfo, -1)) {
  206.                                 // no-op
  207.                             } elseif ('GET' !== $canonicalMethod) {
  208.                                 goto not_admin_content_revision_index;
  209.                             } else {
  210.                                 return array_replace($ret$this->redirect($rawPathinfo.'/''admin_content_revision_index'));
  211.                             }
  212.                             if (!in_array($canonicalMethod, ['GET'])) {
  213.                                 $allow array_merge($allow, ['GET']);
  214.                                 goto not_admin_content_revision_index;
  215.                             }
  216.                             return $ret;
  217.                         }
  218.                         not_admin_content_revision_index:
  219.                         // admin_content_revision_show
  220.                         if (preg_match('#^/admin/content/revision/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  221.                             $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_content_revision_show']), array (  '_controller' => 'AppBundle\\Controller\\ContentRevisionController::showAction',));
  222.                             if (!in_array($canonicalMethod, ['GET'])) {
  223.                                 $allow array_merge($allow, ['GET']);
  224.                                 goto not_admin_content_revision_show;
  225.                             }
  226.                             return $ret;
  227.                         }
  228.                         not_admin_content_revision_show:
  229.                     }
  230.                 }
  231.                 elseif (=== strpos($pathinfo'/admin/courses')) {
  232.                     // admin_courses_index
  233.                     if ('/admin/courses' === $trimmedPathinfo) {
  234.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\CourseController::indexAction',  '_route' => 'admin_courses_index',);
  235.                         if ('/' === substr($pathinfo, -1)) {
  236.                             // no-op
  237.                         } elseif ('GET' !== $canonicalMethod) {
  238.                             goto not_admin_courses_index;
  239.                         } else {
  240.                             return array_replace($ret$this->redirect($rawPathinfo.'/''admin_courses_index'));
  241.                         }
  242.                         if (!in_array($canonicalMethod, ['GET'])) {
  243.                             $allow array_merge($allow, ['GET']);
  244.                             goto not_admin_courses_index;
  245.                         }
  246.                         return $ret;
  247.                     }
  248.                     not_admin_courses_index:
  249.                     // admin_courses_new
  250.                     if ('/admin/courses/new' === $pathinfo) {
  251.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\CourseController::newAction',  '_route' => 'admin_courses_new',);
  252.                         if (!in_array($canonicalMethod, ['GET''POST'])) {
  253.                             $allow array_merge($allow, ['GET''POST']);
  254.                             goto not_admin_courses_new;
  255.                         }
  256.                         return $ret;
  257.                     }
  258.                     not_admin_courses_new:
  259.                     // admin_courses_show
  260.                     if (preg_match('#^/admin/courses/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  261.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_courses_show']), array (  '_controller' => 'AppBundle\\Controller\\CourseController::showAction',));
  262.                         if (!in_array($canonicalMethod, ['GET'])) {
  263.                             $allow array_merge($allow, ['GET']);
  264.                             goto not_admin_courses_show;
  265.                         }
  266.                         return $ret;
  267.                     }
  268.                     not_admin_courses_show:
  269.                     // admin_courses_edit
  270.                     if (preg_match('#^/admin/courses/(?P<id>[^/]++)/edit$#sD'$pathinfo$matches)) {
  271.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_courses_edit']), array (  '_controller' => 'AppBundle\\Controller\\CourseController::editAction',));
  272.                         if (!in_array($canonicalMethod, ['GET''POST'])) {
  273.                             $allow array_merge($allow, ['GET''POST']);
  274.                             goto not_admin_courses_edit;
  275.                         }
  276.                         return $ret;
  277.                     }
  278.                     not_admin_courses_edit:
  279.                     // admin_courses_delete
  280.                     if (preg_match('#^/admin/courses/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  281.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_courses_delete']), array (  '_controller' => 'AppBundle\\Controller\\CourseController::deleteAction',));
  282.                         if (!in_array($requestMethod, ['DELETE'])) {
  283.                             $allow array_merge($allow, ['DELETE']);
  284.                             goto not_admin_courses_delete;
  285.                         }
  286.                         return $ret;
  287.                     }
  288.                     not_admin_courses_delete:
  289.                 }
  290.                 elseif (=== strpos($pathinfo'/admin/grades')) {
  291.                     // admin_grades_index
  292.                     if ('/admin/grades' === $trimmedPathinfo) {
  293.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\GradeController::indexAction',  '_route' => 'admin_grades_index',);
  294.                         if ('/' === substr($pathinfo, -1)) {
  295.                             // no-op
  296.                         } elseif ('GET' !== $canonicalMethod) {
  297.                             goto not_admin_grades_index;
  298.                         } else {
  299.                             return array_replace($ret$this->redirect($rawPathinfo.'/''admin_grades_index'));
  300.                         }
  301.                         if (!in_array($canonicalMethod, ['GET'])) {
  302.                             $allow array_merge($allow, ['GET']);
  303.                             goto not_admin_grades_index;
  304.                         }
  305.                         return $ret;
  306.                     }
  307.                     not_admin_grades_index:
  308.                     // admin_grades_new
  309.                     if ('/admin/grades/new' === $pathinfo) {
  310.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\GradeController::newAction',  '_route' => 'admin_grades_new',);
  311.                         if (!in_array($canonicalMethod, ['GET''POST'])) {
  312.                             $allow array_merge($allow, ['GET''POST']);
  313.                             goto not_admin_grades_new;
  314.                         }
  315.                         return $ret;
  316.                     }
  317.                     not_admin_grades_new:
  318.                     // admin_grades_show
  319.                     if (preg_match('#^/admin/grades/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  320.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_grades_show']), array (  '_controller' => 'AppBundle\\Controller\\GradeController::showAction',));
  321.                         if (!in_array($canonicalMethod, ['GET'])) {
  322.                             $allow array_merge($allow, ['GET']);
  323.                             goto not_admin_grades_show;
  324.                         }
  325.                         return $ret;
  326.                     }
  327.                     not_admin_grades_show:
  328.                     // admin_grades_edit
  329.                     if (preg_match('#^/admin/grades/(?P<id>[^/]++)/edit$#sD'$pathinfo$matches)) {
  330.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_grades_edit']), array (  '_controller' => 'AppBundle\\Controller\\GradeController::editAction',));
  331.                         if (!in_array($canonicalMethod, ['GET''POST'])) {
  332.                             $allow array_merge($allow, ['GET''POST']);
  333.                             goto not_admin_grades_edit;
  334.                         }
  335.                         return $ret;
  336.                     }
  337.                     not_admin_grades_edit:
  338.                     // admin_grades_delete
  339.                     if (preg_match('#^/admin/grades/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  340.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_grades_delete']), array (  '_controller' => 'AppBundle\\Controller\\GradeController::deleteAction',));
  341.                         if (!in_array($requestMethod, ['DELETE'])) {
  342.                             $allow array_merge($allow, ['DELETE']);
  343.                             goto not_admin_grades_delete;
  344.                         }
  345.                         return $ret;
  346.                     }
  347.                     not_admin_grades_delete:
  348.                 }
  349.                 // login
  350.                 if ('/admin/login' === $pathinfo) {
  351.                     return array (  '_controller' => 'AppBundle\\Controller\\LoginController::loginAction',  '_route' => 'login',);
  352.                 }
  353.                 // logout
  354.                 if ('/admin/logout' === $pathinfo) {
  355.                     return ['_route' => 'logout'];
  356.                 }
  357.                 if (=== strpos($pathinfo'/admin/page')) {
  358.                     // admin_page_index
  359.                     if ('/admin/page' === $trimmedPathinfo) {
  360.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\PageController::indexAction',  '_route' => 'admin_page_index',);
  361.                         if ('/' === substr($pathinfo, -1)) {
  362.                             // no-op
  363.                         } elseif ('GET' !== $canonicalMethod) {
  364.                             goto not_admin_page_index;
  365.                         } else {
  366.                             return array_replace($ret$this->redirect($rawPathinfo.'/''admin_page_index'));
  367.                         }
  368.                         if (!in_array($canonicalMethod, ['GET'])) {
  369.                             $allow array_merge($allow, ['GET']);
  370.                             goto not_admin_page_index;
  371.                         }
  372.                         return $ret;
  373.                     }
  374.                     not_admin_page_index:
  375.                     // admin_page_new
  376.                     if ('/admin/page/new' === $pathinfo) {
  377.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\PageController::newAction',  '_route' => 'admin_page_new',);
  378.                         if (!in_array($canonicalMethod, ['GET''POST'])) {
  379.                             $allow array_merge($allow, ['GET''POST']);
  380.                             goto not_admin_page_new;
  381.                         }
  382.                         return $ret;
  383.                     }
  384.                     not_admin_page_new:
  385.                     // admin_page_show
  386.                     if (preg_match('#^/admin/page/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  387.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_page_show']), array (  '_controller' => 'AppBundle\\Controller\\PageController::showAction',));
  388.                         if (!in_array($canonicalMethod, ['GET'])) {
  389.                             $allow array_merge($allow, ['GET']);
  390.                             goto not_admin_page_show;
  391.                         }
  392.                         return $ret;
  393.                     }
  394.                     not_admin_page_show:
  395.                     // admin_page_edit
  396.                     if (preg_match('#^/admin/page/(?P<id>[^/]++)/edit$#sD'$pathinfo$matches)) {
  397.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_page_edit']), array (  '_controller' => 'AppBundle\\Controller\\PageController::editAction',));
  398.                         if (!in_array($canonicalMethod, ['GET''POST'])) {
  399.                             $allow array_merge($allow, ['GET''POST']);
  400.                             goto not_admin_page_edit;
  401.                         }
  402.                         return $ret;
  403.                     }
  404.                     not_admin_page_edit:
  405.                     // admin_page_delete
  406.                     if (preg_match('#^/admin/page/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  407.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_page_delete']), array (  '_controller' => 'AppBundle\\Controller\\PageController::deleteAction',));
  408.                         if (!in_array($requestMethod, ['DELETE'])) {
  409.                             $allow array_merge($allow, ['DELETE']);
  410.                             goto not_admin_page_delete;
  411.                         }
  412.                         return $ret;
  413.                     }
  414.                     not_admin_page_delete:
  415.                     if (=== strpos($pathinfo'/admin/page/meta')) {
  416.                         // admin_page_meta_index
  417.                         if ('/admin/page/meta' === $trimmedPathinfo) {
  418.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\PageMetaController::indexAction',  '_route' => 'admin_page_meta_index',);
  419.                             if ('/' === substr($pathinfo, -1)) {
  420.                                 // no-op
  421.                             } elseif ('GET' !== $canonicalMethod) {
  422.                                 goto not_admin_page_meta_index;
  423.                             } else {
  424.                                 return array_replace($ret$this->redirect($rawPathinfo.'/''admin_page_meta_index'));
  425.                             }
  426.                             if (!in_array($canonicalMethod, ['GET'])) {
  427.                                 $allow array_merge($allow, ['GET']);
  428.                                 goto not_admin_page_meta_index;
  429.                             }
  430.                             return $ret;
  431.                         }
  432.                         not_admin_page_meta_index:
  433.                         // admin_page_meta_new
  434.                         if ('/admin/page/meta/new' === $pathinfo) {
  435.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\PageMetaController::newAction',  '_route' => 'admin_page_meta_new',);
  436.                             if (!in_array($canonicalMethod, ['GET''POST'])) {
  437.                                 $allow array_merge($allow, ['GET''POST']);
  438.                                 goto not_admin_page_meta_new;
  439.                             }
  440.                             return $ret;
  441.                         }
  442.                         not_admin_page_meta_new:
  443.                         // admin_page_meta_show
  444.                         if (preg_match('#^/admin/page/meta/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  445.                             $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_page_meta_show']), array (  '_controller' => 'AppBundle\\Controller\\PageMetaController::showAction',));
  446.                             if (!in_array($canonicalMethod, ['GET'])) {
  447.                                 $allow array_merge($allow, ['GET']);
  448.                                 goto not_admin_page_meta_show;
  449.                             }
  450.                             return $ret;
  451.                         }
  452.                         not_admin_page_meta_show:
  453.                         // admin_page_meta_edit
  454.                         if (preg_match('#^/admin/page/meta/(?P<id>[^/]++)/edit$#sD'$pathinfo$matches)) {
  455.                             $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_page_meta_edit']), array (  '_controller' => 'AppBundle\\Controller\\PageMetaController::editAction',));
  456.                             if (!in_array($canonicalMethod, ['GET''POST'])) {
  457.                                 $allow array_merge($allow, ['GET''POST']);
  458.                                 goto not_admin_page_meta_edit;
  459.                             }
  460.                             return $ret;
  461.                         }
  462.                         not_admin_page_meta_edit:
  463.                         // admin_page_meta_delete
  464.                         if (preg_match('#^/admin/page/meta/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  465.                             $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_page_meta_delete']), array (  '_controller' => 'AppBundle\\Controller\\PageMetaController::deleteAction',));
  466.                             if (!in_array($requestMethod, ['DELETE'])) {
  467.                                 $allow array_merge($allow, ['DELETE']);
  468.                                 goto not_admin_page_meta_delete;
  469.                             }
  470.                             return $ret;
  471.                         }
  472.                         not_admin_page_meta_delete:
  473.                         if (=== strpos($pathinfo'/admin/page/meta/type')) {
  474.                             // admin_page_meta_type_index
  475.                             if ('/admin/page/meta/type' === $trimmedPathinfo) {
  476.                                 $ret = array (  '_controller' => 'AppBundle\\Controller\\PageMetaTypeController::indexAction',  '_route' => 'admin_page_meta_type_index',);
  477.                                 if ('/' === substr($pathinfo, -1)) {
  478.                                     // no-op
  479.                                 } elseif ('GET' !== $canonicalMethod) {
  480.                                     goto not_admin_page_meta_type_index;
  481.                                 } else {
  482.                                     return array_replace($ret$this->redirect($rawPathinfo.'/''admin_page_meta_type_index'));
  483.                                 }
  484.                                 if (!in_array($canonicalMethod, ['GET'])) {
  485.                                     $allow array_merge($allow, ['GET']);
  486.                                     goto not_admin_page_meta_type_index;
  487.                                 }
  488.                                 return $ret;
  489.                             }
  490.                             not_admin_page_meta_type_index:
  491.                             // admin_page_meta_type_new
  492.                             if ('/admin/page/meta/type/new' === $pathinfo) {
  493.                                 $ret = array (  '_controller' => 'AppBundle\\Controller\\PageMetaTypeController::newAction',  '_route' => 'admin_page_meta_type_new',);
  494.                                 if (!in_array($canonicalMethod, ['GET''POST'])) {
  495.                                     $allow array_merge($allow, ['GET''POST']);
  496.                                     goto not_admin_page_meta_type_new;
  497.                                 }
  498.                                 return $ret;
  499.                             }
  500.                             not_admin_page_meta_type_new:
  501.                             // admin_page_meta_type_show
  502.                             if (preg_match('#^/admin/page/meta/type/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  503.                                 $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_page_meta_type_show']), array (  '_controller' => 'AppBundle\\Controller\\PageMetaTypeController::showAction',));
  504.                                 if (!in_array($canonicalMethod, ['GET'])) {
  505.                                     $allow array_merge($allow, ['GET']);
  506.                                     goto not_admin_page_meta_type_show;
  507.                                 }
  508.                                 return $ret;
  509.                             }
  510.                             not_admin_page_meta_type_show:
  511.                             // admin_page_meta_type_edit
  512.                             if (preg_match('#^/admin/page/meta/type/(?P<id>[^/]++)/edit$#sD'$pathinfo$matches)) {
  513.                                 $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_page_meta_type_edit']), array (  '_controller' => 'AppBundle\\Controller\\PageMetaTypeController::editAction',));
  514.                                 if (!in_array($canonicalMethod, ['GET''POST'])) {
  515.                                     $allow array_merge($allow, ['GET''POST']);
  516.                                     goto not_admin_page_meta_type_edit;
  517.                                 }
  518.                                 return $ret;
  519.                             }
  520.                             not_admin_page_meta_type_edit:
  521.                             // admin_page_meta_type_delete
  522.                             if (preg_match('#^/admin/page/meta/type/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  523.                                 $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_page_meta_type_delete']), array (  '_controller' => 'AppBundle\\Controller\\PageMetaTypeController::deleteAction',));
  524.                                 if (!in_array($requestMethod, ['DELETE'])) {
  525.                                     $allow array_merge($allow, ['DELETE']);
  526.                                     goto not_admin_page_meta_type_delete;
  527.                                 }
  528.                                 return $ret;
  529.                             }
  530.                             not_admin_page_meta_type_delete:
  531.                         }
  532.                     }
  533.                 }
  534.                 // admin_progress_index
  535.                 if ('/admin/progress' === $trimmedPathinfo) {
  536.                     $ret = array (  '_controller' => 'AppBundle\\Controller\\ProgressController::indexAction',  '_route' => 'admin_progress_index',);
  537.                     if ('/' === substr($pathinfo, -1)) {
  538.                         // no-op
  539.                     } elseif ('GET' !== $canonicalMethod) {
  540.                         goto not_admin_progress_index;
  541.                     } else {
  542.                         return array_replace($ret$this->redirect($rawPathinfo.'/''admin_progress_index'));
  543.                     }
  544.                     if (!in_array($canonicalMethod, ['GET'])) {
  545.                         $allow array_merge($allow, ['GET']);
  546.                         goto not_admin_progress_index;
  547.                     }
  548.                     return $ret;
  549.                 }
  550.                 not_admin_progress_index:
  551.                 if (=== strpos($pathinfo'/admin/resource')) {
  552.                     // admin_resource_index
  553.                     if ('/admin/resource' === $trimmedPathinfo) {
  554.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\ResourceController::indexAction',  '_route' => 'admin_resource_index',);
  555.                         if ('/' === substr($pathinfo, -1)) {
  556.                             // no-op
  557.                         } elseif ('GET' !== $canonicalMethod) {
  558.                             goto not_admin_resource_index;
  559.                         } else {
  560.                             return array_replace($ret$this->redirect($rawPathinfo.'/''admin_resource_index'));
  561.                         }
  562.                         if (!in_array($canonicalMethod, ['GET'])) {
  563.                             $allow array_merge($allow, ['GET']);
  564.                             goto not_admin_resource_index;
  565.                         }
  566.                         return $ret;
  567.                     }
  568.                     not_admin_resource_index:
  569.                     // admin_resource_new
  570.                     if ('/admin/resource/new' === $pathinfo) {
  571.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\ResourceController::newAction',  '_route' => 'admin_resource_new',);
  572.                         if (!in_array($canonicalMethod, ['GET''POST'])) {
  573.                             $allow array_merge($allow, ['GET''POST']);
  574.                             goto not_admin_resource_new;
  575.                         }
  576.                         return $ret;
  577.                     }
  578.                     not_admin_resource_new:
  579.                     // admin_resource_show
  580.                     if (preg_match('#^/admin/resource/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  581.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_resource_show']), array (  '_controller' => 'AppBundle\\Controller\\ResourceController::showAction',));
  582.                         if (!in_array($canonicalMethod, ['GET'])) {
  583.                             $allow array_merge($allow, ['GET']);
  584.                             goto not_admin_resource_show;
  585.                         }
  586.                         return $ret;
  587.                     }
  588.                     not_admin_resource_show:
  589.                     // admin_resource_download
  590.                     if (preg_match('#^/admin/resource/(?P<id>[^/]++)/download$#sD'$pathinfo$matches)) {
  591.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_resource_download']), array (  '_controller' => 'AppBundle\\Controller\\ResourceController::downloadResource',));
  592.                         if (!in_array($canonicalMethod, ['GET'])) {
  593.                             $allow array_merge($allow, ['GET']);
  594.                             goto not_admin_resource_download;
  595.                         }
  596.                         return $ret;
  597.                     }
  598.                     not_admin_resource_download:
  599.                     // admin_resource_edit
  600.                     if (preg_match('#^/admin/resource/(?P<id>[^/]++)/edit$#sD'$pathinfo$matches)) {
  601.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_resource_edit']), array (  '_controller' => 'AppBundle\\Controller\\ResourceController::editAction',));
  602.                         if (!in_array($canonicalMethod, ['GET''POST'])) {
  603.                             $allow array_merge($allow, ['GET''POST']);
  604.                             goto not_admin_resource_edit;
  605.                         }
  606.                         return $ret;
  607.                     }
  608.                     not_admin_resource_edit:
  609.                     // admin_resource_delete
  610.                     if (preg_match('#^/admin/resource/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  611.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_resource_delete']), array (  '_controller' => 'AppBundle\\Controller\\ResourceController::deleteAction',));
  612.                         if (!in_array($requestMethod, ['DELETE'])) {
  613.                             $allow array_merge($allow, ['DELETE']);
  614.                             goto not_admin_resource_delete;
  615.                         }
  616.                         return $ret;
  617.                     }
  618.                     not_admin_resource_delete:
  619.                     if (=== strpos($pathinfo'/admin/resource/type')) {
  620.                         // admin_resource_type_index
  621.                         if ('/admin/resource/type' === $trimmedPathinfo) {
  622.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\ResourceTypeController::indexAction',  '_route' => 'admin_resource_type_index',);
  623.                             if ('/' === substr($pathinfo, -1)) {
  624.                                 // no-op
  625.                             } elseif ('GET' !== $canonicalMethod) {
  626.                                 goto not_admin_resource_type_index;
  627.                             } else {
  628.                                 return array_replace($ret$this->redirect($rawPathinfo.'/''admin_resource_type_index'));
  629.                             }
  630.                             if (!in_array($canonicalMethod, ['GET'])) {
  631.                                 $allow array_merge($allow, ['GET']);
  632.                                 goto not_admin_resource_type_index;
  633.                             }
  634.                             return $ret;
  635.                         }
  636.                         not_admin_resource_type_index:
  637.                         // admin_resource_type_new
  638.                         if ('/admin/resource/type/new' === $pathinfo) {
  639.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\ResourceTypeController::newAction',  '_route' => 'admin_resource_type_new',);
  640.                             if (!in_array($canonicalMethod, ['GET''POST'])) {
  641.                                 $allow array_merge($allow, ['GET''POST']);
  642.                                 goto not_admin_resource_type_new;
  643.                             }
  644.                             return $ret;
  645.                         }
  646.                         not_admin_resource_type_new:
  647.                         // admin_resource_type_show
  648.                         if (preg_match('#^/admin/resource/type/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  649.                             $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_resource_type_show']), array (  '_controller' => 'AppBundle\\Controller\\ResourceTypeController::showAction',));
  650.                             if (!in_array($canonicalMethod, ['GET'])) {
  651.                                 $allow array_merge($allow, ['GET']);
  652.                                 goto not_admin_resource_type_show;
  653.                             }
  654.                             return $ret;
  655.                         }
  656.                         not_admin_resource_type_show:
  657.                         // admin_resource_type_edit
  658.                         if (preg_match('#^/admin/resource/type/(?P<id>[^/]++)/edit$#sD'$pathinfo$matches)) {
  659.                             $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_resource_type_edit']), array (  '_controller' => 'AppBundle\\Controller\\ResourceTypeController::editAction',));
  660.                             if (!in_array($canonicalMethod, ['GET''POST'])) {
  661.                                 $allow array_merge($allow, ['GET''POST']);
  662.                                 goto not_admin_resource_type_edit;
  663.                             }
  664.                             return $ret;
  665.                         }
  666.                         not_admin_resource_type_edit:
  667.                         // admin_resource_type_delete
  668.                         if (preg_match('#^/admin/resource/type/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  669.                             $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_resource_type_delete']), array (  '_controller' => 'AppBundle\\Controller\\ResourceTypeController::deleteAction',));
  670.                             if (!in_array($requestMethod, ['DELETE'])) {
  671.                                 $allow array_merge($allow, ['DELETE']);
  672.                                 goto not_admin_resource_type_delete;
  673.                             }
  674.                             return $ret;
  675.                         }
  676.                         not_admin_resource_type_delete:
  677.                     }
  678.                 }
  679.                 elseif (=== strpos($pathinfo'/admin/subscriptions')) {
  680.                     // admin_subscriptions_index
  681.                     if ('/admin/subscriptions' === $trimmedPathinfo) {
  682.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\SubscriptionController::indexAction',  '_route' => 'admin_subscriptions_index',);
  683.                         if ('/' === substr($pathinfo, -1)) {
  684.                             // no-op
  685.                         } elseif ('GET' !== $canonicalMethod) {
  686.                             goto not_admin_subscriptions_index;
  687.                         } else {
  688.                             return array_replace($ret$this->redirect($rawPathinfo.'/''admin_subscriptions_index'));
  689.                         }
  690.                         if (!in_array($canonicalMethod, ['GET'])) {
  691.                             $allow array_merge($allow, ['GET']);
  692.                             goto not_admin_subscriptions_index;
  693.                         }
  694.                         return $ret;
  695.                     }
  696.                     not_admin_subscriptions_index:
  697.                     // admin_subscriptions_new
  698.                     if ('/admin/subscriptions/new' === $pathinfo) {
  699.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\SubscriptionController::newAction',  '_route' => 'admin_subscriptions_new',);
  700.                         if (!in_array($canonicalMethod, ['GET''POST'])) {
  701.                             $allow array_merge($allow, ['GET''POST']);
  702.                             goto not_admin_subscriptions_new;
  703.                         }
  704.                         return $ret;
  705.                     }
  706.                     not_admin_subscriptions_new:
  707.                     // admin_subscriptions_show
  708.                     if (preg_match('#^/admin/subscriptions/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  709.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_subscriptions_show']), array (  '_controller' => 'AppBundle\\Controller\\SubscriptionController::showAction',));
  710.                         if (!in_array($canonicalMethod, ['GET'])) {
  711.                             $allow array_merge($allow, ['GET']);
  712.                             goto not_admin_subscriptions_show;
  713.                         }
  714.                         return $ret;
  715.                     }
  716.                     not_admin_subscriptions_show:
  717.                     // admin_subscriptions_edit
  718.                     if (preg_match('#^/admin/subscriptions/(?P<id>[^/]++)/edit$#sD'$pathinfo$matches)) {
  719.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_subscriptions_edit']), array (  '_controller' => 'AppBundle\\Controller\\SubscriptionController::editAction',));
  720.                         if (!in_array($canonicalMethod, ['GET''POST'])) {
  721.                             $allow array_merge($allow, ['GET''POST']);
  722.                             goto not_admin_subscriptions_edit;
  723.                         }
  724.                         return $ret;
  725.                     }
  726.                     not_admin_subscriptions_edit:
  727.                     // admin_subscriptions_delete
  728.                     if (preg_match('#^/admin/subscriptions/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  729.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_subscriptions_delete']), array (  '_controller' => 'AppBundle\\Controller\\SubscriptionController::deleteAction',));
  730.                         if (!in_array($requestMethod, ['DELETE'])) {
  731.                             $allow array_merge($allow, ['DELETE']);
  732.                             goto not_admin_subscriptions_delete;
  733.                         }
  734.                         return $ret;
  735.                     }
  736.                     not_admin_subscriptions_delete:
  737.                 }
  738.                 elseif (=== strpos($pathinfo'/admin/tag')) {
  739.                     // admin_tag_index
  740.                     if ('/admin/tag' === $trimmedPathinfo) {
  741.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\TagController::indexAction',  '_route' => 'admin_tag_index',);
  742.                         if ('/' === substr($pathinfo, -1)) {
  743.                             // no-op
  744.                         } elseif ('GET' !== $canonicalMethod) {
  745.                             goto not_admin_tag_index;
  746.                         } else {
  747.                             return array_replace($ret$this->redirect($rawPathinfo.'/''admin_tag_index'));
  748.                         }
  749.                         if (!in_array($canonicalMethod, ['GET'])) {
  750.                             $allow array_merge($allow, ['GET']);
  751.                             goto not_admin_tag_index;
  752.                         }
  753.                         return $ret;
  754.                     }
  755.                     not_admin_tag_index:
  756.                     // admin_tag_new
  757.                     if ('/admin/tag/new' === $pathinfo) {
  758.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\TagController::newAction',  '_route' => 'admin_tag_new',);
  759.                         if (!in_array($canonicalMethod, ['GET''POST'])) {
  760.                             $allow array_merge($allow, ['GET''POST']);
  761.                             goto not_admin_tag_new;
  762.                         }
  763.                         return $ret;
  764.                     }
  765.                     not_admin_tag_new:
  766.                     // admin_tag_show
  767.                     if (preg_match('#^/admin/tag/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  768.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_tag_show']), array (  '_controller' => 'AppBundle\\Controller\\TagController::showAction',));
  769.                         if (!in_array($canonicalMethod, ['GET'])) {
  770.                             $allow array_merge($allow, ['GET']);
  771.                             goto not_admin_tag_show;
  772.                         }
  773.                         return $ret;
  774.                     }
  775.                     not_admin_tag_show:
  776.                     // admin_tag_edit
  777.                     if (preg_match('#^/admin/tag/(?P<id>[^/]++)/edit$#sD'$pathinfo$matches)) {
  778.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_tag_edit']), array (  '_controller' => 'AppBundle\\Controller\\TagController::editAction',));
  779.                         if (!in_array($canonicalMethod, ['GET''POST'])) {
  780.                             $allow array_merge($allow, ['GET''POST']);
  781.                             goto not_admin_tag_edit;
  782.                         }
  783.                         return $ret;
  784.                     }
  785.                     not_admin_tag_edit:
  786.                     // admin_tag_delete
  787.                     if (preg_match('#^/admin/tag/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  788.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_tag_delete']), array (  '_controller' => 'AppBundle\\Controller\\TagController::deleteAction',));
  789.                         if (!in_array($requestMethod, ['DELETE'])) {
  790.                             $allow array_merge($allow, ['DELETE']);
  791.                             goto not_admin_tag_delete;
  792.                         }
  793.                         return $ret;
  794.                     }
  795.                     not_admin_tag_delete:
  796.                 }
  797.                 elseif (=== strpos($pathinfo'/admin/user')) {
  798.                     // admin_user_index
  799.                     if ('/admin/user' === $trimmedPathinfo) {
  800.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\UserController::indexAction',  '_route' => 'admin_user_index',);
  801.                         if ('/' === substr($pathinfo, -1)) {
  802.                             // no-op
  803.                         } elseif ('GET' !== $canonicalMethod) {
  804.                             goto not_admin_user_index;
  805.                         } else {
  806.                             return array_replace($ret$this->redirect($rawPathinfo.'/''admin_user_index'));
  807.                         }
  808.                         if (!in_array($canonicalMethod, ['GET'])) {
  809.                             $allow array_merge($allow, ['GET']);
  810.                             goto not_admin_user_index;
  811.                         }
  812.                         return $ret;
  813.                     }
  814.                     not_admin_user_index:
  815.                     // admin_user_new
  816.                     if ('/admin/user/new' === $pathinfo) {
  817.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\UserController::newAction',  '_route' => 'admin_user_new',);
  818.                         if (!in_array($canonicalMethod, ['GET''POST'])) {
  819.                             $allow array_merge($allow, ['GET''POST']);
  820.                             goto not_admin_user_new;
  821.                         }
  822.                         return $ret;
  823.                     }
  824.                     not_admin_user_new:
  825.                     // admin_user_show
  826.                     if (preg_match('#^/admin/user/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  827.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_user_show']), array (  '_controller' => 'AppBundle\\Controller\\UserController::showAction',));
  828.                         if (!in_array($canonicalMethod, ['GET'])) {
  829.                             $allow array_merge($allow, ['GET']);
  830.                             goto not_admin_user_show;
  831.                         }
  832.                         return $ret;
  833.                     }
  834.                     not_admin_user_show:
  835.                     // admin_user_edit
  836.                     if (preg_match('#^/admin/user/(?P<id>[^/]++)/edit$#sD'$pathinfo$matches)) {
  837.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_user_edit']), array (  '_controller' => 'AppBundle\\Controller\\UserController::editAction',));
  838.                         if (!in_array($canonicalMethod, ['GET''POST'])) {
  839.                             $allow array_merge($allow, ['GET''POST']);
  840.                             goto not_admin_user_edit;
  841.                         }
  842.                         return $ret;
  843.                     }
  844.                     not_admin_user_edit:
  845.                     // admin_user_password
  846.                     if (preg_match('#^/admin/user/(?P<id>[^/]++)/password$#sD'$pathinfo$matches)) {
  847.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_user_password']), array (  '_controller' => 'AppBundle\\Controller\\UserController::passwordAction',));
  848.                         if (!in_array($canonicalMethod, ['GET''POST'])) {
  849.                             $allow array_merge($allow, ['GET''POST']);
  850.                             goto not_admin_user_password;
  851.                         }
  852.                         return $ret;
  853.                     }
  854.                     not_admin_user_password:
  855.                     // admin_user_delete
  856.                     if (preg_match('#^/admin/user/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  857.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_user_delete']), array (  '_controller' => 'AppBundle\\Controller\\UserController::deleteAction',));
  858.                         if (!in_array($requestMethod, ['DELETE'])) {
  859.                             $allow array_merge($allow, ['DELETE']);
  860.                             goto not_admin_user_delete;
  861.                         }
  862.                         return $ret;
  863.                     }
  864.                     not_admin_user_delete:
  865.                     if (=== strpos($pathinfo'/admin/user/info')) {
  866.                         // admin_user_info_index
  867.                         if ('/admin/user/info' === $trimmedPathinfo) {
  868.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\UserInfoController::indexAction',  '_route' => 'admin_user_info_index',);
  869.                             if ('/' === substr($pathinfo, -1)) {
  870.                                 // no-op
  871.                             } elseif ('GET' !== $canonicalMethod) {
  872.                                 goto not_admin_user_info_index;
  873.                             } else {
  874.                                 return array_replace($ret$this->redirect($rawPathinfo.'/''admin_user_info_index'));
  875.                             }
  876.                             if (!in_array($canonicalMethod, ['GET'])) {
  877.                                 $allow array_merge($allow, ['GET']);
  878.                                 goto not_admin_user_info_index;
  879.                             }
  880.                             return $ret;
  881.                         }
  882.                         not_admin_user_info_index:
  883.                         // admin_user_info_new
  884.                         if ('/admin/user/info/new' === $pathinfo) {
  885.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\UserInfoController::newAction',  '_route' => 'admin_user_info_new',);
  886.                             if (!in_array($canonicalMethod, ['GET''POST'])) {
  887.                                 $allow array_merge($allow, ['GET''POST']);
  888.                                 goto not_admin_user_info_new;
  889.                             }
  890.                             return $ret;
  891.                         }
  892.                         not_admin_user_info_new:
  893.                         // admin_user_info_show
  894.                         if (preg_match('#^/admin/user/info/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  895.                             $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_user_info_show']), array (  '_controller' => 'AppBundle\\Controller\\UserInfoController::showAction',));
  896.                             if (!in_array($canonicalMethod, ['GET'])) {
  897.                                 $allow array_merge($allow, ['GET']);
  898.                                 goto not_admin_user_info_show;
  899.                             }
  900.                             return $ret;
  901.                         }
  902.                         not_admin_user_info_show:
  903.                         // admin_user_info_edit
  904.                         if (preg_match('#^/admin/user/info/(?P<id>[^/]++)/edit$#sD'$pathinfo$matches)) {
  905.                             $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_user_info_edit']), array (  '_controller' => 'AppBundle\\Controller\\UserInfoController::editAction',));
  906.                             if (!in_array($canonicalMethod, ['GET''POST'])) {
  907.                                 $allow array_merge($allow, ['GET''POST']);
  908.                                 goto not_admin_user_info_edit;
  909.                             }
  910.                             return $ret;
  911.                         }
  912.                         not_admin_user_info_edit:
  913.                         // admin_user_info_delete
  914.                         if (preg_match('#^/admin/user/info/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  915.                             $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_user_info_delete']), array (  '_controller' => 'AppBundle\\Controller\\UserInfoController::deleteAction',));
  916.                             if (!in_array($requestMethod, ['DELETE'])) {
  917.                                 $allow array_merge($allow, ['DELETE']);
  918.                                 goto not_admin_user_info_delete;
  919.                             }
  920.                             return $ret;
  921.                         }
  922.                         not_admin_user_info_delete:
  923.                         if (=== strpos($pathinfo'/admin/user/info/type')) {
  924.                             // admin_user_info_type_index
  925.                             if ('/admin/user/info/type' === $trimmedPathinfo) {
  926.                                 $ret = array (  '_controller' => 'AppBundle\\Controller\\UserInfoTypeController::indexAction',  '_route' => 'admin_user_info_type_index',);
  927.                                 if ('/' === substr($pathinfo, -1)) {
  928.                                     // no-op
  929.                                 } elseif ('GET' !== $canonicalMethod) {
  930.                                     goto not_admin_user_info_type_index;
  931.                                 } else {
  932.                                     return array_replace($ret$this->redirect($rawPathinfo.'/''admin_user_info_type_index'));
  933.                                 }
  934.                                 if (!in_array($canonicalMethod, ['GET'])) {
  935.                                     $allow array_merge($allow, ['GET']);
  936.                                     goto not_admin_user_info_type_index;
  937.                                 }
  938.                                 return $ret;
  939.                             }
  940.                             not_admin_user_info_type_index:
  941.                             // admin_user_info_type_new
  942.                             if ('/admin/user/info/type/new' === $pathinfo) {
  943.                                 $ret = array (  '_controller' => 'AppBundle\\Controller\\UserInfoTypeController::newAction',  '_route' => 'admin_user_info_type_new',);
  944.                                 if (!in_array($canonicalMethod, ['GET''POST'])) {
  945.                                     $allow array_merge($allow, ['GET''POST']);
  946.                                     goto not_admin_user_info_type_new;
  947.                                 }
  948.                                 return $ret;
  949.                             }
  950.                             not_admin_user_info_type_new:
  951.                             // admin_user_info_type_show
  952.                             if (preg_match('#^/admin/user/info/type/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  953.                                 $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_user_info_type_show']), array (  '_controller' => 'AppBundle\\Controller\\UserInfoTypeController::showAction',));
  954.                                 if (!in_array($canonicalMethod, ['GET'])) {
  955.                                     $allow array_merge($allow, ['GET']);
  956.                                     goto not_admin_user_info_type_show;
  957.                                 }
  958.                                 return $ret;
  959.                             }
  960.                             not_admin_user_info_type_show:
  961.                             // admin_user_info_type_edit
  962.                             if (preg_match('#^/admin/user/info/type/(?P<id>[^/]++)/edit$#sD'$pathinfo$matches)) {
  963.                                 $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_user_info_type_edit']), array (  '_controller' => 'AppBundle\\Controller\\UserInfoTypeController::editAction',));
  964.                                 if (!in_array($canonicalMethod, ['GET''POST'])) {
  965.                                     $allow array_merge($allow, ['GET''POST']);
  966.                                     goto not_admin_user_info_type_edit;
  967.                                 }
  968.                                 return $ret;
  969.                             }
  970.                             not_admin_user_info_type_edit:
  971.                             // admin_user_info_type_delete
  972.                             if (preg_match('#^/admin/user/info/type/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  973.                                 $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_user_info_type_delete']), array (  '_controller' => 'AppBundle\\Controller\\UserInfoTypeController::deleteAction',));
  974.                                 if (!in_array($requestMethod, ['DELETE'])) {
  975.                                     $allow array_merge($allow, ['DELETE']);
  976.                                     goto not_admin_user_info_type_delete;
  977.                                 }
  978.                                 return $ret;
  979.                             }
  980.                             not_admin_user_info_type_delete:
  981.                         }
  982.                     }
  983.                 }
  984.                 elseif (=== strpos($pathinfo'/admin/mail')) {
  985.                     // admin_mail_index
  986.                     if ('/admin/mail' === $trimmedPathinfo) {
  987.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\UserMailController::indexAction',  '_route' => 'admin_mail_index',);
  988.                         if ('/' === substr($pathinfo, -1)) {
  989.                             // no-op
  990.                         } elseif ('GET' !== $canonicalMethod) {
  991.                             goto not_admin_mail_index;
  992.                         } else {
  993.                             return array_replace($ret$this->redirect($rawPathinfo.'/''admin_mail_index'));
  994.                         }
  995.                         if (!in_array($canonicalMethod, ['GET'])) {
  996.                             $allow array_merge($allow, ['GET']);
  997.                             goto not_admin_mail_index;
  998.                         }
  999.                         return $ret;
  1000.                     }
  1001.                     not_admin_mail_index:
  1002.                     // admin_mail_new
  1003.                     if ('/admin/mail/new' === $pathinfo) {
  1004.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\UserMailController::newAction',  '_route' => 'admin_mail_new',);
  1005.                         if (!in_array($canonicalMethod, ['GET''POST'])) {
  1006.                             $allow array_merge($allow, ['GET''POST']);
  1007.                             goto not_admin_mail_new;
  1008.                         }
  1009.                         return $ret;
  1010.                     }
  1011.                     not_admin_mail_new:
  1012.                     // admin_mail_show
  1013.                     if (preg_match('#^/admin/mail/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  1014.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_mail_show']), array (  '_controller' => 'AppBundle\\Controller\\UserMailController::showAction',));
  1015.                         if (!in_array($canonicalMethod, ['GET'])) {
  1016.                             $allow array_merge($allow, ['GET']);
  1017.                             goto not_admin_mail_show;
  1018.                         }
  1019.                         return $ret;
  1020.                     }
  1021.                     not_admin_mail_show:
  1022.                     // admin_mail_delete
  1023.                     if (preg_match('#^/admin/mail/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  1024.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'admin_mail_delete']), array (  '_controller' => 'AppBundle\\Controller\\UserMailController::deleteAction',));
  1025.                         if (!in_array($requestMethod, ['DELETE'])) {
  1026.                             $allow array_merge($allow, ['DELETE']);
  1027.                             goto not_admin_mail_delete;
  1028.                         }
  1029.                         return $ret;
  1030.                     }
  1031.                     not_admin_mail_delete:
  1032.                 }
  1033.             }
  1034.             elseif (=== strpos($pathinfo'/api')) {
  1035.                 // app_jwt_newtoken
  1036.                 if ('/api/tokens' === $pathinfo) {
  1037.                     $ret = array (  '_controller' => 'AppBundle\\Controller\\JWTController::newTokenAction',  '_route' => 'app_jwt_newtoken',);
  1038.                     if (!in_array($requestMethod, ['POST'])) {
  1039.                         $allow array_merge($allow, ['POST']);
  1040.                         goto not_app_jwt_newtoken;
  1041.                     }
  1042.                     return $ret;
  1043.                 }
  1044.                 not_app_jwt_newtoken:
  1045.                 // api_entrypoint
  1046.                 if (preg_match('#^/api(?:/(?P<index>index)(?:\\.(?P<_format>[^/]++))?)?$#sD'$pathinfo$matches)) {
  1047.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'api_entrypoint']), array (  '_controller' => 'api_platform.action.entrypoint',  '_format' => '',  '_api_respond' => '1',  'index' => 'index',));
  1048.                 }
  1049.                 // api_doc
  1050.                 if (=== strpos($pathinfo'/api/docs') && preg_match('#^/api/docs(?:\\.(?P<_format>[^/]++))?$#sD'$pathinfo$matches)) {
  1051.                     return $this->mergeDefaults(array_replace($matches, ['_route' => 'api_doc']), array (  '_controller' => 'api_platform.action.documentation',  '_api_respond' => '1',  '_format' => '',));
  1052.                 }
  1053.                 if (=== strpos($pathinfo'/api/user')) {
  1054.                     // api_users_get_item
  1055.                     if (=== strpos($pathinfo'/api/users') && preg_match('#^/api/users/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#sD'$pathinfo$matches)) {
  1056.                         $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',));
  1057.                         if (!in_array($canonicalMethod, ['GET'])) {
  1058.                             $allow array_merge($allow, ['GET']);
  1059.                             goto not_api_users_get_item;
  1060.                         }
  1061.                         return $ret;
  1062.                     }
  1063.                     not_api_users_get_item:
  1064.                     // api_user_info_types_get_item
  1065.                     if (=== strpos($pathinfo'/api/user_info_types') && preg_match('#^/api/user_info_types/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#sD'$pathinfo$matches)) {
  1066.                         $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',));
  1067.                         if (!in_array($canonicalMethod, ['GET'])) {
  1068.                             $allow array_merge($allow, ['GET']);
  1069.                             goto not_api_user_info_types_get_item;
  1070.                         }
  1071.                         return $ret;
  1072.                     }
  1073.                     not_api_user_info_types_get_item:
  1074.                     // api_user_infos_get_item
  1075.                     if (=== strpos($pathinfo'/api/user_infos') && preg_match('#^/api/user_infos/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#sD'$pathinfo$matches)) {
  1076.                         $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',));
  1077.                         if (!in_array($canonicalMethod, ['GET'])) {
  1078.                             $allow array_merge($allow, ['GET']);
  1079.                             goto not_api_user_infos_get_item;
  1080.                         }
  1081.                         return $ret;
  1082.                     }
  1083.                     not_api_user_infos_get_item:
  1084.                 }
  1085.                 // api_courses_get_item
  1086.                 if (=== strpos($pathinfo'/api/courses') && preg_match('#^/api/courses/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#sD'$pathinfo$matches)) {
  1087.                     $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',));
  1088.                     if (!in_array($canonicalMethod, ['GET'])) {
  1089.                         $allow array_merge($allow, ['GET']);
  1090.                         goto not_api_courses_get_item;
  1091.                     }
  1092.                     return $ret;
  1093.                 }
  1094.                 not_api_courses_get_item:
  1095.                 // api_tags_get_item
  1096.                 if (=== strpos($pathinfo'/api/tags') && preg_match('#^/api/tags/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#sD'$pathinfo$matches)) {
  1097.                     $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',));
  1098.                     if (!in_array($canonicalMethod, ['GET'])) {
  1099.                         $allow array_merge($allow, ['GET']);
  1100.                         goto not_api_tags_get_item;
  1101.                     }
  1102.                     return $ret;
  1103.                 }
  1104.                 not_api_tags_get_item:
  1105.                 if (=== strpos($pathinfo'/api/activities')) {
  1106.                     // api_activities_post_collection
  1107.                     if (preg_match('#^/api/activities(?:\\.(?P<_format>[^/]++))?$#sD'$pathinfo$matches)) {
  1108.                         $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',));
  1109.                         if (!in_array($requestMethod, ['POST'])) {
  1110.                             $allow array_merge($allow, ['POST']);
  1111.                             goto not_api_activities_post_collection;
  1112.                         }
  1113.                         return $ret;
  1114.                     }
  1115.                     not_api_activities_post_collection:
  1116.                     // api_activities_get_item
  1117.                     if (preg_match('#^/api/activities/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#sD'$pathinfo$matches)) {
  1118.                         $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',));
  1119.                         if (!in_array($canonicalMethod, ['GET'])) {
  1120.                             $allow array_merge($allow, ['GET']);
  1121.                             goto not_api_activities_get_item;
  1122.                         }
  1123.                         return $ret;
  1124.                     }
  1125.                     not_api_activities_get_item:
  1126.                 }
  1127.                 elseif (=== strpos($pathinfo'/api/resource_types')) {
  1128.                     // api_resource_types_get_collection
  1129.                     if (preg_match('#^/api/resource_types(?:\\.(?P<_format>[^/]++))?$#sD'$pathinfo$matches)) {
  1130.                         $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',));
  1131.                         if (!in_array($canonicalMethod, ['GET'])) {
  1132.                             $allow array_merge($allow, ['GET']);
  1133.                             goto not_api_resource_types_get_collection;
  1134.                         }
  1135.                         return $ret;
  1136.                     }
  1137.                     not_api_resource_types_get_collection:
  1138.                     // api_resource_types_get_item
  1139.                     if (preg_match('#^/api/resource_types/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#sD'$pathinfo$matches)) {
  1140.                         $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',));
  1141.                         if (!in_array($canonicalMethod, ['GET'])) {
  1142.                             $allow array_merge($allow, ['GET']);
  1143.                             goto not_api_resource_types_get_item;
  1144.                         }
  1145.                         return $ret;
  1146.                     }
  1147.                     not_api_resource_types_get_item:
  1148.                 }
  1149.                 elseif (=== strpos($pathinfo'/api/resources')) {
  1150.                     // api_resources_get_collection
  1151.                     if (preg_match('#^/api/resources(?:\\.(?P<_format>[^/]++))?$#sD'$pathinfo$matches)) {
  1152.                         $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',));
  1153.                         if (!in_array($canonicalMethod, ['GET'])) {
  1154.                             $allow array_merge($allow, ['GET']);
  1155.                             goto not_api_resources_get_collection;
  1156.                         }
  1157.                         return $ret;
  1158.                     }
  1159.                     not_api_resources_get_collection:
  1160.                     // api_resources_get_item
  1161.                     if (preg_match('#^/api/resources/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#sD'$pathinfo$matches)) {
  1162.                         $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',));
  1163.                         if (!in_array($canonicalMethod, ['GET'])) {
  1164.                             $allow array_merge($allow, ['GET']);
  1165.                             goto not_api_resources_get_item;
  1166.                         }
  1167.                         return $ret;
  1168.                     }
  1169.                     not_api_resources_get_item:
  1170.                 }
  1171.                 elseif (=== strpos($pathinfo'/api/grades')) {
  1172.                     // api_grades_post_collection
  1173.                     if (preg_match('#^/api/grades(?:\\.(?P<_format>[^/]++))?$#sD'$pathinfo$matches)) {
  1174.                         $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',));
  1175.                         if (!in_array($requestMethod, ['POST'])) {
  1176.                             $allow array_merge($allow, ['POST']);
  1177.                             goto not_api_grades_post_collection;
  1178.                         }
  1179.                         return $ret;
  1180.                     }
  1181.                     not_api_grades_post_collection:
  1182.                     // api_grades_get_item
  1183.                     if (preg_match('#^/api/grades/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#sD'$pathinfo$matches)) {
  1184.                         $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',));
  1185.                         if (!in_array($canonicalMethod, ['GET'])) {
  1186.                             $allow array_merge($allow, ['GET']);
  1187.                             goto not_api_grades_get_item;
  1188.                         }
  1189.                         return $ret;
  1190.                     }
  1191.                     not_api_grades_get_item:
  1192.                 }
  1193.                 // api_get_token
  1194.                 if ('/api/getToken' === $pathinfo) {
  1195.                     return ['_route' => 'api_get_token'];
  1196.                 }
  1197.                 // api_subscriptions_get_item
  1198.                 if (=== strpos($pathinfo'/api/subscriptions') && preg_match('#^/api/subscriptions/(?P<id>[^/\\.]++)(?:\\.(?P<_format>[^/]++))?$#sD'$pathinfo$matches)) {
  1199.                     $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',));
  1200.                     if (!in_array($canonicalMethod, ['GET'])) {
  1201.                         $allow array_merge($allow, ['GET']);
  1202.                         goto not_api_subscriptions_get_item;
  1203.                     }
  1204.                     return $ret;
  1205.                 }
  1206.                 not_api_subscriptions_get_item:
  1207.             }
  1208.             elseif (=== strpos($pathinfo'/account/reset')) {
  1209.                 // request_password_reset
  1210.                 if ('/account/reset' === $trimmedPathinfo) {
  1211.                     $ret = array (  '_controller' => 'AppBundle\\Controller\\LoginController::resetPasswordAction',  '_route' => 'request_password_reset',);
  1212.                     if ('/' === substr($pathinfo, -1)) {
  1213.                         // no-op
  1214.                     } elseif ('GET' !== $canonicalMethod) {
  1215.                         goto not_request_password_reset;
  1216.                     } else {
  1217.                         return array_replace($ret$this->redirect($rawPathinfo.'/''request_password_reset'));
  1218.                     }
  1219.                     return $ret;
  1220.                 }
  1221.                 not_request_password_reset:
  1222.                 // password_reset_confirm
  1223.                 if (=== strpos($pathinfo'/account/reset/{') && preg_match('#^/account/reset/\\{(?P<token>[^/]+)\\}$#sD'$pathinfo$matches)) {
  1224.                     $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'password_reset_confirm']), array (  '_controller' => 'AppBundle\\Controller\\LoginController::resetPasswordConfirmAction',));
  1225.                     if (!in_array($canonicalMethod, ['POST''GET'])) {
  1226.                         $allow array_merge($allow, ['POST''GET']);
  1227.                         goto not_password_reset_confirm;
  1228.                     }
  1229.                     return $ret;
  1230.                 }
  1231.                 not_password_reset_confirm:
  1232.             }
  1233.         }
  1234.         elseif (=== strpos($pathinfo'/site')) {
  1235.             // app_routing_sitemap
  1236.             if ('/sitemap.xml' === $pathinfo) {
  1237.                 $ret = array (  '_controller' => 'AppBundle\\Controller\\RoutingController::sitemapAction',  '_route' => 'app_routing_sitemap',);
  1238.                 if (!in_array($canonicalMethod, ['GET'])) {
  1239.                     $allow array_merge($allow, ['GET']);
  1240.                     goto not_app_routing_sitemap;
  1241.                 }
  1242.                 return $ret;
  1243.             }
  1244.             not_app_routing_sitemap:
  1245.             // app_utilities_passwordreset
  1246.             if ('/site/reset' === $pathinfo) {
  1247.                 $ret = array (  '_format' => 'json',  '_controller' => 'AppBundle\\Controller\\UtilitiesController::passwordResetAction',  '_route' => 'app_utilities_passwordreset',);
  1248.                 if (!in_array($requestMethod, ['POST'])) {
  1249.                     $allow array_merge($allow, ['POST']);
  1250.                     goto not_app_utilities_passwordreset;
  1251.                 }
  1252.                 return $ret;
  1253.             }
  1254.             not_app_utilities_passwordreset:
  1255.             // app_utilities_register
  1256.             if ('/site/register' === $pathinfo) {
  1257.                 $ret = array (  '_format' => 'json',  '_controller' => 'AppBundle\\Controller\\UtilitiesController::registerAction',  '_route' => 'app_utilities_register',);
  1258.                 if (!in_array($requestMethod, ['POST'])) {
  1259.                     $allow array_merge($allow, ['POST']);
  1260.                     goto not_app_utilities_register;
  1261.                 }
  1262.                 return $ret;
  1263.             }
  1264.             not_app_utilities_register:
  1265.             // app_utilities_sitecontact
  1266.             if ('/site/contact' === $pathinfo) {
  1267.                 $ret = array (  '_format' => 'json',  '_controller' => 'AppBundle\\Controller\\UtilitiesController::siteContactAction',  '_route' => 'app_utilities_sitecontact',);
  1268.                 if (!in_array($requestMethod, ['POST'])) {
  1269.                     $allow array_merge($allow, ['POST']);
  1270.                     goto not_app_utilities_sitecontact;
  1271.                 }
  1272.                 return $ret;
  1273.             }
  1274.             not_app_utilities_sitecontact:
  1275.         }
  1276.         if ('/' === $pathinfo && !$allow) {
  1277.             throw new Symfony\Component\Routing\Exception\NoConfigurationException();
  1278.         }
  1279.         throw count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
  1280.     }
  1281. }