var/cache/dev/appDevDebugProjectContainerUrlMatcher.php line 2273

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.         elseif (=== strpos($pathinfo'/api')) {
  90.             if (=== strpos($pathinfo'/api/addon')) {
  91.                 if (=== strpos($pathinfo'/api/addons')) {
  92.                     // addons_list
  93.                     if ('/api/addons' === $pathinfo) {
  94.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\AddonsController::listAddonsAction',  '_route' => 'addons_list',);
  95.                         if (!in_array($canonicalMethod, ['GET'])) {
  96.                             $allow array_merge($allow, ['GET']);
  97.                             goto not_addons_list;
  98.                         }
  99.                         return $ret;
  100.                     }
  101.                     not_addons_list:
  102.                     // add_addon
  103.                     if ('/api/addons' === $pathinfo) {
  104.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\AddonsController::addAddonAction',  '_route' => 'add_addon',);
  105.                         if (!in_array($requestMethod, ['POST'])) {
  106.                             $allow array_merge($allow, ['POST']);
  107.                             goto not_add_addon;
  108.                         }
  109.                         return $ret;
  110.                     }
  111.                     not_add_addon:
  112.                     // update_addon
  113.                     if (preg_match('#^/api/addons/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  114.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'update_addon']), array (  '_controller' => 'AppBundle\\Controller\\AddonsController::updateAddonAction',));
  115.                         if (!in_array($requestMethod, ['PUT'])) {
  116.                             $allow array_merge($allow, ['PUT']);
  117.                             goto not_update_addon;
  118.                         }
  119.                         return $ret;
  120.                     }
  121.                     not_update_addon:
  122.                 }
  123.                 // addon_ids_list
  124.                 if ('/api/addon/ids' === $pathinfo) {
  125.                     $ret = array (  '_controller' => 'AppBundle\\Controller\\AddonsController::listAddonIdsAction',  '_route' => 'addon_ids_list',);
  126.                     if (!in_array($canonicalMethod, ['GET'])) {
  127.                         $allow array_merge($allow, ['GET']);
  128.                         goto not_addon_ids_list;
  129.                     }
  130.                     return $ret;
  131.                 }
  132.                 not_addon_ids_list:
  133.                 // get_addon_status
  134.                 if (=== strpos($pathinfo'/api/addon/status') && preg_match('#^/api/addon/status/(?P<id>\\d+)$#sD'$pathinfo$matches)) {
  135.                     $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'get_addon_status']), array (  '_controller' => 'AppBundle\\Controller\\AddonsController::getAddonStatusAction',));
  136.                     if (!in_array($canonicalMethod, ['GET'])) {
  137.                         $allow array_merge($allow, ['GET']);
  138.                         goto not_get_addon_status;
  139.                     }
  140.                     return $ret;
  141.                 }
  142.                 not_get_addon_status:
  143.                 // delete_addon
  144.                 if (preg_match('#^/api/addon/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  145.                     $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'delete_addon']), array (  '_controller' => 'AppBundle\\Controller\\AddonsController::removeAddonAction',));
  146.                     if (!in_array($requestMethod, ['DELETE'])) {
  147.                         $allow array_merge($allow, ['DELETE']);
  148.                         goto not_delete_addon;
  149.                     }
  150.                     return $ret;
  151.                 }
  152.                 not_delete_addon:
  153.                 // count_of_not_synced_addons
  154.                 if ('/api/addons/not_synced' === $pathinfo) {
  155.                     $ret = array (  '_controller' => 'AppBundle\\Controller\\AddonsController::notSyncedAddons',  '_route' => 'count_of_not_synced_addons',);
  156.                     if (!in_array($canonicalMethod, ['GET'])) {
  157.                         $allow array_merge($allow, ['GET']);
  158.                         goto not_count_of_not_synced_addons;
  159.                     }
  160.                     return $ret;
  161.                 }
  162.                 not_count_of_not_synced_addons:
  163.                 // import_addons_to_bela
  164.                 if ('/api/addons/to/bela' === $pathinfo) {
  165.                     $ret = array (  '_controller' => 'AppBundle\\Controller\\AddonsController::importAddonsToBeLA',  '_route' => 'import_addons_to_bela',);
  166.                     if (!in_array($requestMethod, ['POST'])) {
  167.                         $allow array_merge($allow, ['POST']);
  168.                         goto not_import_addons_to_bela;
  169.                     }
  170.                     return $ret;
  171.                 }
  172.                 not_import_addons_to_bela:
  173.             }
  174.             elseif (=== strpos($pathinfo'/api/c')) {
  175.                 if (=== strpos($pathinfo'/api/cluster/arrangement')) {
  176.                     // cluster_arrangement_list
  177.                     if ('/api/cluster/arrangements' === $pathinfo) {
  178.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\ClusterArrangementsController::listClusterArrangementAction',  '_route' => 'cluster_arrangement_list',);
  179.                         if (!in_array($canonicalMethod, ['GET'])) {
  180.                             $allow array_merge($allow, ['GET']);
  181.                             goto not_cluster_arrangement_list;
  182.                         }
  183.                         return $ret;
  184.                     }
  185.                     not_cluster_arrangement_list:
  186.                     // add_cluster_arrangement
  187.                     if ('/api/cluster/arrangement' === $pathinfo) {
  188.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\ClusterArrangementsController::addClusterArrangementAction',  '_route' => 'add_cluster_arrangement',);
  189.                         if (!in_array($requestMethod, ['POST'])) {
  190.                             $allow array_merge($allow, ['POST']);
  191.                             goto not_add_cluster_arrangement;
  192.                         }
  193.                         return $ret;
  194.                     }
  195.                     not_add_cluster_arrangement:
  196.                     // update_cluster_arrangement
  197.                     if (preg_match('#^/api/cluster/arrangement/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  198.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'update_cluster_arrangement']), array (  '_controller' => 'AppBundle\\Controller\\ClusterArrangementsController::updateClusterArrangementAction',));
  199.                         if (!in_array($requestMethod, ['PUT'])) {
  200.                             $allow array_merge($allow, ['PUT']);
  201.                             goto not_update_cluster_arrangement;
  202.                         }
  203.                         return $ret;
  204.                     }
  205.                     not_update_cluster_arrangement:
  206.                     // delete_cluster_arrangement
  207.                     if (preg_match('#^/api/cluster/arrangement/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  208.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'delete_cluster_arrangement']), array (  '_controller' => 'AppBundle\\Controller\\ClusterArrangementsController::removeClusterArrangementAction',));
  209.                         if (!in_array($requestMethod, ['DELETE'])) {
  210.                             $allow array_merge($allow, ['DELETE']);
  211.                             goto not_delete_cluster_arrangement;
  212.                         }
  213.                         return $ret;
  214.                     }
  215.                     not_delete_cluster_arrangement:
  216.                     // used_cluster_arrangements
  217.                     if ('/api/cluster/arrangements/used' === $pathinfo) {
  218.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\ClusterArrangementsController::getUsedClusterArrangementsAction',  '_route' => 'used_cluster_arrangements',);
  219.                         if (!in_array($canonicalMethod, ['GET'])) {
  220.                             $allow array_merge($allow, ['GET']);
  221.                             goto not_used_cluster_arrangements;
  222.                         }
  223.                         return $ret;
  224.                     }
  225.                     not_used_cluster_arrangements:
  226.                     // arrangement_list_ordering
  227.                     if ('/api/cluster/arrangements/ordering' === $pathinfo) {
  228.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\ClusterArrangementsController::updateArrangementOrdering',  '_route' => 'arrangement_list_ordering',);
  229.                         if (!in_array($requestMethod, ['POST'])) {
  230.                             $allow array_merge($allow, ['POST']);
  231.                             goto not_arrangement_list_ordering;
  232.                         }
  233.                         return $ret;
  234.                     }
  235.                     not_arrangement_list_ordering:
  236.                 }
  237.                 elseif (=== strpos($pathinfo'/api/clusters')) {
  238.                     // clusters_list
  239.                     if ('/api/clusters' === $pathinfo) {
  240.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\ClustersController::listClustersAction',  '_route' => 'clusters_list',);
  241.                         if (!in_array($canonicalMethod, ['GET'])) {
  242.                             $allow array_merge($allow, ['GET']);
  243.                             goto not_clusters_list;
  244.                         }
  245.                         return $ret;
  246.                     }
  247.                     not_clusters_list:
  248.                     // clusters_credits_list
  249.                     if ('/api/clusters/credits' === $pathinfo) {
  250.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\ClustersController::listClustersWithCreditsAction',  '_route' => 'clusters_credits_list',);
  251.                         if (!in_array($canonicalMethod, ['GET'])) {
  252.                             $allow array_merge($allow, ['GET']);
  253.                             goto not_clusters_credits_list;
  254.                         }
  255.                         return $ret;
  256.                     }
  257.                     not_clusters_credits_list:
  258.                     // update_cluster
  259.                     if ('/api/clusters' === $pathinfo) {
  260.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\ClustersController::updateClusterAction',  '_route' => 'update_cluster',);
  261.                         if (!in_array($requestMethod, ['PATCH'])) {
  262.                             $allow array_merge($allow, ['PATCH']);
  263.                             goto not_update_cluster;
  264.                         }
  265.                         return $ret;
  266.                     }
  267.                     not_update_cluster:
  268.                     // add_cluster
  269.                     if ('/api/clusters' === $pathinfo) {
  270.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\ClustersController::addClusterAction',  '_route' => 'add_cluster',);
  271.                         if (!in_array($requestMethod, ['POST'])) {
  272.                             $allow array_merge($allow, ['POST']);
  273.                             goto not_add_cluster;
  274.                         }
  275.                         return $ret;
  276.                     }
  277.                     not_add_cluster:
  278.                     // remove_cluster
  279.                     if ('/api/clusters' === $pathinfo) {
  280.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\ClustersController::removeClusterAction',  '_route' => 'remove_cluster',);
  281.                         if (!in_array($requestMethod, ['DELETE'])) {
  282.                             $allow array_merge($allow, ['DELETE']);
  283.                             goto not_remove_cluster;
  284.                         }
  285.                         return $ret;
  286.                     }
  287.                     not_remove_cluster:
  288.                     // update_clusters_ordering
  289.                     if ('/api/clusters/ordering' === $pathinfo) {
  290.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\ClustersController::updateClustersOrderingAction',  '_route' => 'update_clusters_ordering',);
  291.                         if (!in_array($requestMethod, ['POST'])) {
  292.                             $allow array_merge($allow, ['POST']);
  293.                             goto not_update_clusters_ordering;
  294.                         }
  295.                         return $ret;
  296.                     }
  297.                     not_update_clusters_ordering:
  298.                 }
  299.                 elseif (=== strpos($pathinfo'/api/course')) {
  300.                     // course_categories_list
  301.                     if ('/api/course/categories' === $pathinfo) {
  302.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\CourseCategoriesController::listCourseCategoriesAction',  '_route' => 'course_categories_list',);
  303.                         if (!in_array($canonicalMethod, ['GET'])) {
  304.                             $allow array_merge($allow, ['GET']);
  305.                             goto not_course_categories_list;
  306.                         }
  307.                         return $ret;
  308.                     }
  309.                     not_course_categories_list:
  310.                     // course_level_list
  311.                     if ('/api/course/levels' === $pathinfo) {
  312.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\CourseLevelController::listCourseLevelsAction',  '_route' => 'course_level_list',);
  313.                         if (!in_array($canonicalMethod, ['GET'])) {
  314.                             $allow array_merge($allow, ['GET']);
  315.                             goto not_course_level_list;
  316.                         }
  317.                         return $ret;
  318.                     }
  319.                     not_course_level_list:
  320.                     if (=== strpos($pathinfo'/api/course/variant')) {
  321.                         if (=== strpos($pathinfo'/api/course/variants')) {
  322.                             // course_variants_list
  323.                             if ('/api/course/variants' === $pathinfo) {
  324.                                 $ret = array (  '_controller' => 'AppBundle\\Controller\\CourseVariantsController::listCourseVariantsAction',  '_route' => 'course_variants_list',);
  325.                                 if (!in_array($canonicalMethod, ['GET'])) {
  326.                                     $allow array_merge($allow, ['GET']);
  327.                                     goto not_course_variants_list;
  328.                                 }
  329.                                 return $ret;
  330.                             }
  331.                             not_course_variants_list:
  332.                             // course_variants_sequences_list
  333.                             if ('/api/course/variants/sequences' === $pathinfo) {
  334.                                 $ret = array (  '_controller' => 'AppBundle\\Controller\\CourseVariantsController::listCourseVariantsSequencesAction',  '_route' => 'course_variants_sequences_list',);
  335.                                 if (!in_array($canonicalMethod, ['GET'])) {
  336.                                     $allow array_merge($allow, ['GET']);
  337.                                     goto not_course_variants_sequences_list;
  338.                                 }
  339.                                 return $ret;
  340.                             }
  341.                             not_course_variants_sequences_list:
  342.                             // course_variants_region_list
  343.                             if (=== strpos($pathinfo'/api/course/variants/region') && preg_match('#^/api/course/variants/region/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  344.                                 $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'course_variants_region_list']), array (  '_controller' => 'AppBundle\\Controller\\CourseVariantsController::listCourseVariantsRegionAction',));
  345.                                 if (!in_array($canonicalMethod, ['GET'])) {
  346.                                     $allow array_merge($allow, ['GET']);
  347.                                     goto not_course_variants_region_list;
  348.                                 }
  349.                                 return $ret;
  350.                             }
  351.                             not_course_variants_region_list:
  352.                         }
  353.                         // get_course_variant
  354.                         if (preg_match('#^/api/course/variant/(?P<id>\\d+)$#sD'$pathinfo$matches)) {
  355.                             $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'get_course_variant']), array (  '_controller' => 'AppBundle\\Controller\\CourseVariantsController::getCourseVariantAction',));
  356.                             if (!in_array($canonicalMethod, ['GET'])) {
  357.                                 $allow array_merge($allow, ['GET']);
  358.                                 goto not_get_course_variant;
  359.                             }
  360.                             return $ret;
  361.                         }
  362.                         not_get_course_variant:
  363.                         // add_course_variant
  364.                         if ('/api/course/variant' === $pathinfo) {
  365.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\CourseVariantsController::addCourseVariantAction',  '_route' => 'add_course_variant',);
  366.                             if (!in_array($requestMethod, ['POST'])) {
  367.                                 $allow array_merge($allow, ['POST']);
  368.                                 goto not_add_course_variant;
  369.                             }
  370.                             return $ret;
  371.                         }
  372.                         not_add_course_variant:
  373.                         // update_course_variant
  374.                         if (preg_match('#^/api/course/variant/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  375.                             $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'update_course_variant']), array (  '_controller' => 'AppBundle\\Controller\\CourseVariantsController::updateCourseVariantAction',));
  376.                             if (!in_array($requestMethod, ['PUT'])) {
  377.                                 $allow array_merge($allow, ['PUT']);
  378.                                 goto not_update_course_variant;
  379.                             }
  380.                             return $ret;
  381.                         }
  382.                         not_update_course_variant:
  383.                         // delete_course_variant
  384.                         if (preg_match('#^/api/course/variant/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  385.                             $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'delete_course_variant']), array (  '_controller' => 'AppBundle\\Controller\\CourseVariantsController::removeCourseVariantAction',));
  386.                             if (!in_array($requestMethod, ['DELETE'])) {
  387.                                 $allow array_merge($allow, ['DELETE']);
  388.                                 goto not_delete_course_variant;
  389.                             }
  390.                             return $ret;
  391.                         }
  392.                         not_delete_course_variant:
  393.                         if (=== strpos($pathinfo'/api/course/variants')) {
  394.                             // counts_course_variants_by_courses
  395.                             if ('/api/course/variants/counts' === $pathinfo) {
  396.                                 $ret = array (  '_controller' => 'AppBundle\\Controller\\CourseVariantsController::getCourseVariantsCountsByCoursesAction',  '_route' => 'counts_course_variants_by_courses',);
  397.                                 if (!in_array($canonicalMethod, ['GET'])) {
  398.                                     $allow array_merge($allow, ['GET']);
  399.                                     goto not_counts_course_variants_by_courses;
  400.                                 }
  401.                                 return $ret;
  402.                             }
  403.                             not_counts_course_variants_by_courses:
  404.                             // count_of_not_synced_course_variants
  405.                             if ('/api/course/variants/not_synced' === $pathinfo) {
  406.                                 $ret = array (  '_controller' => 'AppBundle\\Controller\\CourseVariantsController::notSyncedCourseVariants',  '_route' => 'count_of_not_synced_course_variants',);
  407.                                 if (!in_array($canonicalMethod, ['GET'])) {
  408.                                     $allow array_merge($allow, ['GET']);
  409.                                     goto not_count_of_not_synced_course_variants;
  410.                                 }
  411.                                 return $ret;
  412.                             }
  413.                             not_count_of_not_synced_course_variants:
  414.                             // import_course_variants_to_bela
  415.                             if ('/api/course/variants/to/bela' === $pathinfo) {
  416.                                 $ret = array (  '_controller' => 'AppBundle\\Controller\\CourseVariantsController::importCourseVariantsToBeLA',  '_route' => 'import_course_variants_to_bela',);
  417.                                 if (!in_array($requestMethod, ['POST'])) {
  418.                                     $allow array_merge($allow, ['POST']);
  419.                                     goto not_import_course_variants_to_bela;
  420.                                 }
  421.                                 return $ret;
  422.                             }
  423.                             not_import_course_variants_to_bela:
  424.                         }
  425.                     }
  426.                     elseif (=== strpos($pathinfo'/api/courses')) {
  427.                         // courses_list
  428.                         if ('/api/courses' === $pathinfo) {
  429.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\CoursesController::listCoursesAction',  '_route' => 'courses_list',);
  430.                             if (!in_array($canonicalMethod, ['GET'])) {
  431.                                 $allow array_merge($allow, ['GET']);
  432.                                 goto not_courses_list;
  433.                             }
  434.                             return $ret;
  435.                         }
  436.                         not_courses_list:
  437.                         // course_schedule_list
  438.                         if ('/api/courses/schedule' === $pathinfo) {
  439.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\CoursesController::listCoursesScheduleAction',  '_route' => 'course_schedule_list',);
  440.                             if (!in_array($canonicalMethod, ['GET'])) {
  441.                                 $allow array_merge($allow, ['GET']);
  442.                                 goto not_course_schedule_list;
  443.                             }
  444.                             return $ret;
  445.                         }
  446.                         not_course_schedule_list:
  447.                     }
  448.                     // get_course
  449.                     if (preg_match('#^/api/course/(?P<id>\\d+)$#sD'$pathinfo$matches)) {
  450.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'get_course']), array (  '_controller' => 'AppBundle\\Controller\\CoursesController::getCourseAction',));
  451.                         if (!in_array($canonicalMethod, ['GET'])) {
  452.                             $allow array_merge($allow, ['GET']);
  453.                             goto not_get_course;
  454.                         }
  455.                         return $ret;
  456.                     }
  457.                     not_get_course:
  458.                     // add_course
  459.                     if ('/api/course' === $pathinfo) {
  460.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\CoursesController::addCourseAction',  '_route' => 'add_course',);
  461.                         if (!in_array($requestMethod, ['POST'])) {
  462.                             $allow array_merge($allow, ['POST']);
  463.                             goto not_add_course;
  464.                         }
  465.                         return $ret;
  466.                     }
  467.                     not_add_course:
  468.                     // edit_course
  469.                     if (preg_match('#^/api/course/(?P<id>\\d+)$#sD'$pathinfo$matches)) {
  470.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'edit_course']), array (  '_controller' => 'AppBundle\\Controller\\CoursesController::editCourseAction',));
  471.                         if (!in_array($requestMethod, ['PUT'])) {
  472.                             $allow array_merge($allow, ['PUT']);
  473.                             goto not_edit_course;
  474.                         }
  475.                         return $ret;
  476.                     }
  477.                     not_edit_course:
  478.                     // counts_courses_by_subjects
  479.                     if ('/api/courses/counts' === $pathinfo) {
  480.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\CoursesController::getCoursesCountsBySubjectsAction',  '_route' => 'counts_courses_by_subjects',);
  481.                         if (!in_array($canonicalMethod, ['GET'])) {
  482.                             $allow array_merge($allow, ['GET']);
  483.                             goto not_counts_courses_by_subjects;
  484.                         }
  485.                         return $ret;
  486.                     }
  487.                     not_counts_courses_by_subjects:
  488.                     // delete_course
  489.                     if (preg_match('#^/api/course/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  490.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'delete_course']), array (  '_controller' => 'AppBundle\\Controller\\CoursesController::removeCourseAction',));
  491.                         if (!in_array($requestMethod, ['DELETE'])) {
  492.                             $allow array_merge($allow, ['DELETE']);
  493.                             goto not_delete_course;
  494.                         }
  495.                         return $ret;
  496.                     }
  497.                     not_delete_course:
  498.                     if (=== strpos($pathinfo'/api/courses')) {
  499.                         // import_courses_to_bela
  500.                         if ('/api/courses/to/bela' === $pathinfo) {
  501.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\CoursesController::importCoursesToBeLA',  '_route' => 'import_courses_to_bela',);
  502.                             if (!in_array($requestMethod, ['POST'])) {
  503.                                 $allow array_merge($allow, ['POST']);
  504.                                 goto not_import_courses_to_bela;
  505.                             }
  506.                             return $ret;
  507.                         }
  508.                         not_import_courses_to_bela:
  509.                         // count_of_not_synced_courses
  510.                         if ('/api/courses/not_synced' === $pathinfo) {
  511.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\CoursesController::notSyncedCourses',  '_route' => 'count_of_not_synced_courses',);
  512.                             if (!in_array($canonicalMethod, ['GET'])) {
  513.                                 $allow array_merge($allow, ['GET']);
  514.                                 goto not_count_of_not_synced_courses;
  515.                             }
  516.                             return $ret;
  517.                         }
  518.                         not_count_of_not_synced_courses:
  519.                         // curriculum_courses_status
  520.                         if ('/api/courses/init_status' === $pathinfo) {
  521.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\CoursesController::curriculumCoursesStatusAction',  '_route' => 'curriculum_courses_status',);
  522.                             if (!in_array($canonicalMethod, ['GET'])) {
  523.                                 $allow array_merge($allow, ['GET']);
  524.                                 goto not_curriculum_courses_status;
  525.                             }
  526.                             return $ret;
  527.                         }
  528.                         not_curriculum_courses_status:
  529.                         // curriculum_courses_apply
  530.                         if ('/api/courses/init_apply' === $pathinfo) {
  531.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\CoursesController::curriculumCoursesApplyAction',  '_route' => 'curriculum_courses_apply',);
  532.                             if (!in_array($requestMethod, ['POST'])) {
  533.                                 $allow array_merge($allow, ['POST']);
  534.                                 goto not_curriculum_courses_apply;
  535.                             }
  536.                             return $ret;
  537.                         }
  538.                         not_curriculum_courses_apply:
  539.                     }
  540.                 }
  541.                 // curriculum_is_cloning_allowed
  542.                 if ('/api/curriculum/is_cloning_allowed' === $pathinfo) {
  543.                     $ret = array (  '_controller' => 'AppBundle\\Controller\\CurriculumController::isCloningAllowedAction',  '_route' => 'curriculum_is_cloning_allowed',);
  544.                     if (!in_array($canonicalMethod, ['GET'])) {
  545.                         $allow array_merge($allow, ['GET']);
  546.                         goto not_curriculum_is_cloning_allowed;
  547.                     }
  548.                     return $ret;
  549.                 }
  550.                 not_curriculum_is_cloning_allowed:
  551.                 // curriculum_do_clone
  552.                 if ('/api/curriculum/do_clone' === $pathinfo) {
  553.                     $ret = array (  '_controller' => 'AppBundle\\Controller\\CurriculumController::doCloneAction',  '_route' => 'curriculum_do_clone',);
  554.                     if (!in_array($requestMethod, ['POST'])) {
  555.                         $allow array_merge($allow, ['POST']);
  556.                         goto not_curriculum_do_clone;
  557.                     }
  558.                     return $ret;
  559.                 }
  560.                 not_curriculum_do_clone:
  561.             }
  562.             elseif (=== strpos($pathinfo'/api/xlsx')) {
  563.                 if (=== strpos($pathinfo'/api/xlsx/c')) {
  564.                     // export_clusters
  565.                     if ('/api/xlsx/clusters' === $pathinfo) {
  566.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\ClustersController::exportClustersAction',  '_route' => 'export_clusters',);
  567.                         if (!in_array($canonicalMethod, ['GET'])) {
  568.                             $allow array_merge($allow, ['GET']);
  569.                             goto not_export_clusters;
  570.                         }
  571.                         return $ret;
  572.                     }
  573.                     not_export_clusters:
  574.                     // export_course_variants
  575.                     if ('/api/xlsx/course/variants' === $pathinfo) {
  576.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\CourseVariantsController::exportCoursesAction',  '_route' => 'export_course_variants',);
  577.                         if (!in_array($canonicalMethod, ['GET'])) {
  578.                             $allow array_merge($allow, ['GET']);
  579.                             goto not_export_course_variants;
  580.                         }
  581.                         return $ret;
  582.                     }
  583.                     not_export_course_variants:
  584.                     // export_course
  585.                     if ('/api/xlsx/courses' === $pathinfo) {
  586.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\CoursesController::exportCoursesAction',  '_route' => 'export_course',);
  587.                         if (!in_array($canonicalMethod, ['GET'])) {
  588.                             $allow array_merge($allow, ['GET']);
  589.                             goto not_export_course;
  590.                         }
  591.                         return $ret;
  592.                     }
  593.                     not_export_course:
  594.                 }
  595.                 elseif (=== strpos($pathinfo'/api/xlsx/schoolcatalog')) {
  596.                     // export_school_catalog_xls
  597.                     if (preg_match('#^/api/xlsx/schoolcatalog/(?P<schoolId>[^/]++)$#sD'$pathinfo$matches)) {
  598.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'export_school_catalog_xls']), array (  '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::exportSchoolCatalogXLSAction',));
  599.                         if (!in_array($canonicalMethod, ['GET'])) {
  600.                             $allow array_merge($allow, ['GET']);
  601.                             goto not_export_school_catalog_xls;
  602.                         }
  603.                         return $ret;
  604.                     }
  605.                     not_export_school_catalog_xls:
  606.                     // export_all_school_catalog_xls
  607.                     if ('/api/xlsx/schoolcatalog' === $pathinfo) {
  608.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::exportAllSchoolCatalogsXLSAction',  '_route' => 'export_all_school_catalog_xls',);
  609.                         if (!in_array($canonicalMethod, ['GET'])) {
  610.                             $allow array_merge($allow, ['GET']);
  611.                             goto not_export_all_school_catalog_xls;
  612.                         }
  613.                         return $ret;
  614.                     }
  615.                     not_export_all_school_catalog_xls:
  616.                 }
  617.                 // export_sequences_xls
  618.                 if ('/api/xlsx/sequences' === $pathinfo) {
  619.                     $ret = array (  '_controller' => 'AppBundle\\Controller\\SequencesController::exportSequencesToXls',  '_route' => 'export_sequences_xls',);
  620.                     if (!in_array($canonicalMethod, ['GET'])) {
  621.                         $allow array_merge($allow, ['GET']);
  622.                         goto not_export_sequences_xls;
  623.                     }
  624.                     return $ret;
  625.                 }
  626.                 not_export_sequences_xls:
  627.             }
  628.             elseif (=== strpos($pathinfo'/api/s')) {
  629.                 // stats
  630.                 if ('/api/stats' === $pathinfo) {
  631.                     $ret = array (  '_controller' => 'AppBundle\\Controller\\DefaultController::getStats',  '_route' => 'stats',);
  632.                     if (!in_array($canonicalMethod, ['GET'])) {
  633.                         $allow array_merge($allow, ['GET']);
  634.                         goto not_stats;
  635.                     }
  636.                     return $ret;
  637.                 }
  638.                 not_stats:
  639.                 if (=== strpos($pathinfo'/api/school')) {
  640.                     if (=== strpos($pathinfo'/api/schooladdoncatalog')) {
  641.                         // get_school_addon_catalogs
  642.                         if ('/api/schooladdoncatalogs' === $pathinfo) {
  643.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\SchoolAddonCatalogController::getSchoolAddonCatalogsInfoAction',  '_route' => 'get_school_addon_catalogs',);
  644.                             if (!in_array($canonicalMethod, ['GET'])) {
  645.                                 $allow array_merge($allow, ['GET']);
  646.                                 goto not_get_school_addon_catalogs;
  647.                             }
  648.                             return $ret;
  649.                         }
  650.                         not_get_school_addon_catalogs:
  651.                         // get_school_addon_catalog
  652.                         if (=== strpos($pathinfo'/api/schooladdoncatalog/school') && preg_match('#^/api/schooladdoncatalog/school/(?P<schoolId>\\d+)$#sD'$pathinfo$matches)) {
  653.                             $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'get_school_addon_catalog']), array (  '_controller' => 'AppBundle\\Controller\\SchoolAddonCatalogController::getSchoolAddonCatalogAction',));
  654.                             if (!in_array($canonicalMethod, ['GET'])) {
  655.                                 $allow array_merge($allow, ['GET']);
  656.                                 goto not_get_school_addon_catalog;
  657.                             }
  658.                             return $ret;
  659.                         }
  660.                         not_get_school_addon_catalog:
  661.                         // add_school_addon_catalog
  662.                         if ('/api/schooladdoncatalog' === $pathinfo) {
  663.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\SchoolAddonCatalogController::addSchoolAddonCatalogAction',  '_route' => 'add_school_addon_catalog',);
  664.                             if (!in_array($requestMethod, ['POST'])) {
  665.                                 $allow array_merge($allow, ['POST']);
  666.                                 goto not_add_school_addon_catalog;
  667.                             }
  668.                             return $ret;
  669.                         }
  670.                         not_add_school_addon_catalog:
  671.                         // edit_school_addon_catalog
  672.                         if (preg_match('#^/api/schooladdoncatalog/(?P<id>\\d+)$#sD'$pathinfo$matches)) {
  673.                             $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'edit_school_addon_catalog']), array (  '_controller' => 'AppBundle\\Controller\\SchoolAddonCatalogController::editSchoolAddonCatalogAction',));
  674.                             if (!in_array($requestMethod, ['PUT'])) {
  675.                                 $allow array_merge($allow, ['PUT']);
  676.                                 goto not_edit_school_addon_catalog;
  677.                             }
  678.                             return $ret;
  679.                         }
  680.                         not_edit_school_addon_catalog:
  681.                         // delete_school_addon_catalog
  682.                         if (preg_match('#^/api/schooladdoncatalog/(?P<id>\\d+)$#sD'$pathinfo$matches)) {
  683.                             $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'delete_school_addon_catalog']), array (  '_controller' => 'AppBundle\\Controller\\SchoolAddonCatalogController::deleteSchoolAddonCatalogAction',));
  684.                             if (!in_array($requestMethod, ['DELETE'])) {
  685.                                 $allow array_merge($allow, ['DELETE']);
  686.                                 goto not_delete_school_addon_catalog;
  687.                             }
  688.                             return $ret;
  689.                         }
  690.                         not_delete_school_addon_catalog:
  691.                         // import_school_addon_catalog_to_bela
  692.                         if (preg_match('#^/api/schooladdoncatalog/(?P<schoolId>[^/]++)/to/bela$#sD'$pathinfo$matches)) {
  693.                             $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'import_school_addon_catalog_to_bela']), array (  '_controller' => 'AppBundle\\Controller\\SchoolAddonCatalogController::importSchoolAddonCatalogToBeLA',));
  694.                             if (!in_array($requestMethod, ['POST'])) {
  695.                                 $allow array_merge($allow, ['POST']);
  696.                                 goto not_import_school_addon_catalog_to_bela;
  697.                             }
  698.                             return $ret;
  699.                         }
  700.                         not_import_school_addon_catalog_to_bela:
  701.                     }
  702.                     elseif (=== strpos($pathinfo'/api/schooladdons')) {
  703.                         // counts_school_catalogs_by_addons
  704.                         if ('/api/schooladdons/counts' === $pathinfo) {
  705.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::getCountsSchoolCoursesByAddonsAction',  '_route' => 'counts_school_catalogs_by_addons',);
  706.                             if (!in_array($canonicalMethod, ['GET'])) {
  707.                                 $allow array_merge($allow, ['GET']);
  708.                                 goto not_counts_school_catalogs_by_addons;
  709.                             }
  710.                             return $ret;
  711.                         }
  712.                         not_counts_school_catalogs_by_addons:
  713.                         // school_courses_by_addon
  714.                         if ('/api/schooladdons' === $pathinfo) {
  715.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::getSchoolCoursesByAddonAction',  '_route' => 'school_courses_by_addon',);
  716.                             if (!in_array($canonicalMethod, ['GET'])) {
  717.                                 $allow array_merge($allow, ['GET']);
  718.                                 goto not_school_courses_by_addon;
  719.                             }
  720.                             return $ret;
  721.                         }
  722.                         not_school_courses_by_addon:
  723.                     }
  724.                     elseif (=== strpos($pathinfo'/api/schoolcatalog')) {
  725.                         // get_school_catalogs
  726.                         if ('/api/schoolcatalogs' === $pathinfo) {
  727.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::getSchoolCatalogsInfoAction',  '_route' => 'get_school_catalogs',);
  728.                             if (!in_array($canonicalMethod, ['GET'])) {
  729.                                 $allow array_merge($allow, ['GET']);
  730.                                 goto not_get_school_catalogs;
  731.                             }
  732.                             return $ret;
  733.                         }
  734.                         not_get_school_catalogs:
  735.                         // get_school_catalog
  736.                         if (=== strpos($pathinfo'/api/schoolcatalog/school') && preg_match('#^/api/schoolcatalog/school/(?P<schoolId>\\d+)$#sD'$pathinfo$matches)) {
  737.                             $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'get_school_catalog']), array (  '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::getSchoolCatalogAction',));
  738.                             if (!in_array($canonicalMethod, ['GET'])) {
  739.                                 $allow array_merge($allow, ['GET']);
  740.                                 goto not_get_school_catalog;
  741.                             }
  742.                             return $ret;
  743.                         }
  744.                         not_get_school_catalog:
  745.                         // get_all_school_catalogs
  746.                         if ('/api/schoolcatalog' === $pathinfo) {
  747.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::getAllSchoolCatalogsAction',  '_route' => 'get_all_school_catalogs',);
  748.                             if (!in_array($canonicalMethod, ['GET'])) {
  749.                                 $allow array_merge($allow, ['GET']);
  750.                                 goto not_get_all_school_catalogs;
  751.                             }
  752.                             return $ret;
  753.                         }
  754.                         not_get_all_school_catalogs:
  755.                         // add_school_catalog
  756.                         if ('/api/schoolcatalog' === $pathinfo) {
  757.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::addSchoolCatalogAction',  '_route' => 'add_school_catalog',);
  758.                             if (!in_array($requestMethod, ['POST'])) {
  759.                                 $allow array_merge($allow, ['POST']);
  760.                                 goto not_add_school_catalog;
  761.                             }
  762.                             return $ret;
  763.                         }
  764.                         not_add_school_catalog:
  765.                         // edit_school_catalog
  766.                         if (preg_match('#^/api/schoolcatalog/(?P<id>\\d+)$#sD'$pathinfo$matches)) {
  767.                             $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'edit_school_catalog']), array (  '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::editSchoolCatalogAction',));
  768.                             if (!in_array($requestMethod, ['PUT'])) {
  769.                                 $allow array_merge($allow, ['PUT']);
  770.                                 goto not_edit_school_catalog;
  771.                             }
  772.                             return $ret;
  773.                         }
  774.                         not_edit_school_catalog:
  775.                         // delete_school_catalog
  776.                         if (preg_match('#^/api/schoolcatalog/(?P<id>\\d+)$#sD'$pathinfo$matches)) {
  777.                             $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'delete_school_catalog']), array (  '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::deleteSchoolCatalogAction',));
  778.                             if (!in_array($requestMethod, ['DELETE'])) {
  779.                                 $allow array_merge($allow, ['DELETE']);
  780.                                 goto not_delete_school_catalog;
  781.                             }
  782.                             return $ret;
  783.                         }
  784.                         not_delete_school_catalog:
  785.                         if (=== strpos($pathinfo'/api/schoolcatalog/generate')) {
  786.                             // generate_school_catalog
  787.                             if ('/api/schoolcatalog/generate' === $pathinfo) {
  788.                                 $ret = array (  '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::generateSchoolCatalog',  '_route' => 'generate_school_catalog',);
  789.                                 if (!in_array($requestMethod, ['POST'])) {
  790.                                     $allow array_merge($allow, ['POST']);
  791.                                     goto not_generate_school_catalog;
  792.                                 }
  793.                                 return $ret;
  794.                             }
  795.                             not_generate_school_catalog:
  796.                             // gen_stats_school_catalog
  797.                             if ('/api/schoolcatalog/generate/stats' === $pathinfo) {
  798.                                 $ret = array (  '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::generateStatsSchoolCatalog',  '_route' => 'gen_stats_school_catalog',);
  799.                                 if (!in_array($canonicalMethod, ['GET'])) {
  800.                                     $allow array_merge($allow, ['GET']);
  801.                                     goto not_gen_stats_school_catalog;
  802.                                 }
  803.                                 return $ret;
  804.                             }
  805.                             not_gen_stats_school_catalog:
  806.                         }
  807.                         // get_school_catalog_applied
  808.                         if ('/api/schoolcatalog/applied' === $pathinfo) {
  809.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::getAppliedSchoolCatalogAction',  '_route' => 'get_school_catalog_applied',);
  810.                             if (!in_array($canonicalMethod, ['GET'])) {
  811.                                 $allow array_merge($allow, ['GET']);
  812.                                 goto not_get_school_catalog_applied;
  813.                             }
  814.                             return $ret;
  815.                         }
  816.                         not_get_school_catalog_applied:
  817.                         // edit_exemption
  818.                         if (=== strpos($pathinfo'/api/schoolcatalog/exemption') && preg_match('#^/api/schoolcatalog/exemption/(?P<id>\\d+)$#sD'$pathinfo$matches)) {
  819.                             $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'edit_exemption']), array (  '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::editExemptionAction',));
  820.                             if (!in_array($requestMethod, ['PUT'])) {
  821.                                 $allow array_merge($allow, ['PUT']);
  822.                                 goto not_edit_exemption;
  823.                             }
  824.                             return $ret;
  825.                         }
  826.                         not_edit_exemption:
  827.                         // import_school_catalog_to_bela
  828.                         if (preg_match('#^/api/schoolcatalog/(?P<schoolId>[^/]++)/to/bela$#sD'$pathinfo$matches)) {
  829.                             $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'import_school_catalog_to_bela']), array (  '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::importSchoolCatalogToBeLA',));
  830.                             if (!in_array($requestMethod, ['POST'])) {
  831.                                 $allow array_merge($allow, ['POST']);
  832.                                 goto not_import_school_catalog_to_bela;
  833.                             }
  834.                             return $ret;
  835.                         }
  836.                         not_import_school_catalog_to_bela:
  837.                         // import_bela_course_numbers_to_school_catalog
  838.                         if ('/api/schoolcatalog/course/numbers' === $pathinfo) {
  839.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::importBelaCourseNumbersToSchoolCatalog',  '_route' => 'import_bela_course_numbers_to_school_catalog',);
  840.                             if (!in_array($requestMethod, ['POST'])) {
  841.                                 $allow array_merge($allow, ['POST']);
  842.                                 goto not_import_bela_course_numbers_to_school_catalog;
  843.                             }
  844.                             return $ret;
  845.                         }
  846.                         not_import_bela_course_numbers_to_school_catalog:
  847.                     }
  848.                     elseif (=== strpos($pathinfo'/api/schoolcourses')) {
  849.                         // counts_school_catalogs_by_course_variants
  850.                         if ('/api/schoolcourses/counts' === $pathinfo) {
  851.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::getCountsSchoolCoursesByCourseVariantsAction',  '_route' => 'counts_school_catalogs_by_course_variants',);
  852.                             if (!in_array($canonicalMethod, ['GET'])) {
  853.                                 $allow array_merge($allow, ['GET']);
  854.                                 goto not_counts_school_catalogs_by_course_variants;
  855.                             }
  856.                             return $ret;
  857.                         }
  858.                         not_counts_school_catalogs_by_course_variants:
  859.                         // school_courses_by_course_variant
  860.                         if ('/api/schoolcourses' === $pathinfo) {
  861.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::getSchoolCoursesByCourseVariantAction',  '_route' => 'school_courses_by_course_variant',);
  862.                             if (!in_array($canonicalMethod, ['GET'])) {
  863.                                 $allow array_merge($allow, ['GET']);
  864.                                 goto not_school_courses_by_course_variant;
  865.                             }
  866.                             return $ret;
  867.                         }
  868.                         not_school_courses_by_course_variant:
  869.                     }
  870.                     // activate_schoolyear
  871.                     if ('/api/schoolyear/activate_new' === $pathinfo) {
  872.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\SchoolYearController::activateSchoolYearAction',  '_route' => 'activate_schoolyear',);
  873.                         if (!in_array($requestMethod, ['POST'])) {
  874.                             $allow array_merge($allow, ['POST']);
  875.                             goto not_activate_schoolyear;
  876.                         }
  877.                         return $ret;
  878.                     }
  879.                     not_activate_schoolyear:
  880.                     // deactivate_schoolyear
  881.                     if ('/api/schoolyear/deactivate' === $pathinfo) {
  882.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\SchoolYearController::deactivateSchoolYearAction',  '_route' => 'deactivate_schoolyear',);
  883.                         if (!in_array($requestMethod, ['POST'])) {
  884.                             $allow array_merge($allow, ['POST']);
  885.                             goto not_deactivate_schoolyear;
  886.                         }
  887.                         return $ret;
  888.                     }
  889.                     not_deactivate_schoolyear:
  890.                     // schools_list
  891.                     if ('/api/schools' === $pathinfo) {
  892.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\SchoolsController::listSchoolsAction',  '_route' => 'schools_list',);
  893.                         if (!in_array($canonicalMethod, ['GET'])) {
  894.                             $allow array_merge($allow, ['GET']);
  895.                             goto not_schools_list;
  896.                         }
  897.                         return $ret;
  898.                     }
  899.                     not_schools_list:
  900.                     // school_info
  901.                     if (preg_match('#^/api/school/(?P<id>\\d+)$#sD'$pathinfo$matches)) {
  902.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'school_info']), array (  '_controller' => 'AppBundle\\Controller\\SchoolsController::getSchoolInfoAction',));
  903.                         if (!in_array($canonicalMethod, ['GET'])) {
  904.                             $allow array_merge($allow, ['GET']);
  905.                             goto not_school_info;
  906.                         }
  907.                         return $ret;
  908.                     }
  909.                     not_school_info:
  910.                     // schools_list_ordering
  911.                     if ('/api/schools/ordering' === $pathinfo) {
  912.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\SchoolsController::updateSchoolOrdering',  '_route' => 'schools_list_ordering',);
  913.                         if (!in_array($requestMethod, ['POST'])) {
  914.                             $allow array_merge($allow, ['POST']);
  915.                             goto not_schools_list_ordering;
  916.                         }
  917.                         return $ret;
  918.                     }
  919.                     not_schools_list_ordering:
  920.                     // add_school
  921.                     if ('/api/school' === $pathinfo) {
  922.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\SchoolsController::addSchoolAction',  '_route' => 'add_school',);
  923.                         if (!in_array($requestMethod, ['POST'])) {
  924.                             $allow array_merge($allow, ['POST']);
  925.                             goto not_add_school;
  926.                         }
  927.                         return $ret;
  928.                     }
  929.                     not_add_school:
  930.                     // edit_school
  931.                     if (preg_match('#^/api/school/(?P<id>\\d+)$#sD'$pathinfo$matches)) {
  932.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'edit_school']), array (  '_controller' => 'AppBundle\\Controller\\SchoolsController::editSchoolGradesAction',));
  933.                         if (!in_array($requestMethod, ['PUT'])) {
  934.                             $allow array_merge($allow, ['PUT']);
  935.                             goto not_edit_school;
  936.                         }
  937.                         return $ret;
  938.                     }
  939.                     not_edit_school:
  940.                     if (=== strpos($pathinfo'/api/schools')) {
  941.                         // schools_list_with_graduation
  942.                         if ('/api/schools/with/graduation' === $pathinfo) {
  943.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\SchoolsController::listSchoolsWithGraduationAction',  '_route' => 'schools_list_with_graduation',);
  944.                             if (!in_array($canonicalMethod, ['GET'])) {
  945.                                 $allow array_merge($allow, ['GET']);
  946.                                 goto not_schools_list_with_graduation;
  947.                             }
  948.                             return $ret;
  949.                         }
  950.                         not_schools_list_with_graduation:
  951.                         // schools_list_with_exports
  952.                         if ('/api/schools/exports' === $pathinfo) {
  953.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\SchoolsController::listSchoolsExportsAction',  '_route' => 'schools_list_with_exports',);
  954.                             if (!in_array($canonicalMethod, ['GET'])) {
  955.                                 $allow array_merge($allow, ['GET']);
  956.                                 goto not_schools_list_with_exports;
  957.                             }
  958.                             return $ret;
  959.                         }
  960.                         not_schools_list_with_exports:
  961.                         // set_pdf_link_state
  962.                         if ('/api/schools/pdflinkstate' === $pathinfo) {
  963.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\SchoolsController::setPdfLinkStateForSchoolsAction',  '_route' => 'set_pdf_link_state',);
  964.                             if (!in_array($requestMethod, ['POST'])) {
  965.                                 $allow array_merge($allow, ['POST']);
  966.                                 goto not_set_pdf_link_state;
  967.                             }
  968.                             return $ret;
  969.                         }
  970.                         not_set_pdf_link_state:
  971.                         // update_bela_active_year_and_grades
  972.                         if ('/api/schools/grades' === $pathinfo) {
  973.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\SchoolsController::updateBelaActiveYearAndGrades',  '_route' => 'update_bela_active_year_and_grades',);
  974.                             if (!in_array($requestMethod, ['POST'])) {
  975.                                 $allow array_merge($allow, ['POST']);
  976.                                 goto not_update_bela_active_year_and_grades;
  977.                             }
  978.                             return $ret;
  979.                         }
  980.                         not_update_bela_active_year_and_grades:
  981.                         // get_schools_init_state
  982.                         if ('/api/schools/init/state' === $pathinfo) {
  983.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\SchoolsController::getSchoolsInitStatus',  '_route' => 'get_schools_init_state',);
  984.                             if (!in_array($canonicalMethod, ['GET'])) {
  985.                                 $allow array_merge($allow, ['GET']);
  986.                                 goto not_get_schools_init_state;
  987.                             }
  988.                             return $ret;
  989.                         }
  990.                         not_get_schools_init_state:
  991.                         // get_schools_with_not_synced_catalogs
  992.                         if ('/api/schools/not/synced/catalogs' === $pathinfo) {
  993.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\SchoolsController::getSchoolsWithNotSyncedCatalogs',  '_route' => 'get_schools_with_not_synced_catalogs',);
  994.                             if (!in_array($canonicalMethod, ['GET'])) {
  995.                                 $allow array_merge($allow, ['GET']);
  996.                                 goto not_get_schools_with_not_synced_catalogs;
  997.                             }
  998.                             return $ret;
  999.                         }
  1000.                         not_get_schools_with_not_synced_catalogs:
  1001.                     }
  1002.                 }
  1003.                 // sporklogin
  1004.                 if ('/api/sporklogin' === $pathinfo) {
  1005.                     $ret = array (  '_controller' => 'AppBundle\\Controller\\SecurityController::sporkLoginAction',  '_route' => 'sporklogin',);
  1006.                     if (!in_array($requestMethod, ['POST'])) {
  1007.                         $allow array_merge($allow, ['POST']);
  1008.                         goto not_sporklogin;
  1009.                     }
  1010.                     return $ret;
  1011.                 }
  1012.                 not_sporklogin:
  1013.                 // selectivities_list
  1014.                 if ('/api/selectivities' === $pathinfo) {
  1015.                     $ret = array (  '_controller' => 'AppBundle\\Controller\\SelectivitiesController::listSelectivitiesAction',  '_route' => 'selectivities_list',);
  1016.                     if (!in_array($canonicalMethod, ['GET'])) {
  1017.                         $allow array_merge($allow, ['GET']);
  1018.                         goto not_selectivities_list;
  1019.                     }
  1020.                     return $ret;
  1021.                 }
  1022.                 not_selectivities_list:
  1023.                 if (=== strpos($pathinfo'/api/sequences')) {
  1024.                     // get_sequences
  1025.                     if ('/api/sequences' === $pathinfo) {
  1026.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\SequencesController::getSequenceAction',  '_route' => 'get_sequences',);
  1027.                         if (!in_array($canonicalMethod, ['GET'])) {
  1028.                             $allow array_merge($allow, ['GET']);
  1029.                             goto not_get_sequences;
  1030.                         }
  1031.                         return $ret;
  1032.                     }
  1033.                     not_get_sequences:
  1034.                     // add_sequence
  1035.                     if ('/api/sequences' === $pathinfo) {
  1036.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\SequencesController::addSequenceAction',  '_route' => 'add_sequence',);
  1037.                         if (!in_array($requestMethod, ['POST'])) {
  1038.                             $allow array_merge($allow, ['POST']);
  1039.                             goto not_add_sequence;
  1040.                         }
  1041.                         return $ret;
  1042.                     }
  1043.                     not_add_sequence:
  1044.                     // delete_sequence
  1045.                     if ('/api/sequences' === $pathinfo) {
  1046.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\SequencesController::deleteSequenceAction',  '_route' => 'delete_sequence',);
  1047.                         if (!in_array($requestMethod, ['DELETE'])) {
  1048.                             $allow array_merge($allow, ['DELETE']);
  1049.                             goto not_delete_sequence;
  1050.                         }
  1051.                         return $ret;
  1052.                     }
  1053.                     not_delete_sequence:
  1054.                     // update_sequence
  1055.                     if (preg_match('#^/api/sequences/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  1056.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'update_sequence']), array (  '_controller' => 'AppBundle\\Controller\\SequencesController::updateSequenceAction',));
  1057.                         if (!in_array($requestMethod, ['PUT'])) {
  1058.                             $allow array_merge($allow, ['PUT']);
  1059.                             goto not_update_sequence;
  1060.                         }
  1061.                         return $ret;
  1062.                     }
  1063.                     not_update_sequence:
  1064.                     // update_sequences_ordering
  1065.                     if ('/api/sequences/ordering' === $pathinfo) {
  1066.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\SequencesController::updateSequencesOrderingAction',  '_route' => 'update_sequences_ordering',);
  1067.                         if (!in_array($requestMethod, ['POST'])) {
  1068.                             $allow array_merge($allow, ['POST']);
  1069.                             goto not_update_sequences_ordering;
  1070.                         }
  1071.                         return $ret;
  1072.                     }
  1073.                     not_update_sequences_ordering:
  1074.                     // get_sequences_by_courses
  1075.                     if ('/api/sequences/courses' === $pathinfo) {
  1076.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\SequencesController::getSequencesByCoursesAction',  '_route' => 'get_sequences_by_courses',);
  1077.                         if (!in_array($canonicalMethod, ['GET'])) {
  1078.                             $allow array_merge($allow, ['GET']);
  1079.                             goto not_get_sequences_by_courses;
  1080.                         }
  1081.                         return $ret;
  1082.                     }
  1083.                     not_get_sequences_by_courses:
  1084.                     // export_sequences_courses
  1085.                     if ('/api/sequences/courselist' === $pathinfo) {
  1086.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\SequencesController::exportSequencesApi',  '_route' => 'export_sequences_courses',);
  1087.                         if (!in_array($canonicalMethod, ['GET'])) {
  1088.                             $allow array_merge($allow, ['GET']);
  1089.                             goto not_export_sequences_courses;
  1090.                         }
  1091.                         return $ret;
  1092.                     }
  1093.                     not_export_sequences_courses:
  1094.                     // upload_sequence_cmap
  1095.                     if ('/api/sequences/upload_cmap' === $pathinfo) {
  1096.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\SequencesController::uploadCurriculumMapAction',  '_route' => 'upload_sequence_cmap',);
  1097.                         if (!in_array($requestMethod, ['POST'])) {
  1098.                             $allow array_merge($allow, ['POST']);
  1099.                             goto not_upload_sequence_cmap;
  1100.                         }
  1101.                         return $ret;
  1102.                     }
  1103.                     not_upload_sequence_cmap:
  1104.                     // remove_sequence_cmap
  1105.                     if ('/api/sequences/remove_cmap' === $pathinfo) {
  1106.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\SequencesController::removeCurriculumMapAction',  '_route' => 'remove_sequence_cmap',);
  1107.                         if (!in_array($requestMethod, ['DELETE'])) {
  1108.                             $allow array_merge($allow, ['DELETE']);
  1109.                             goto not_remove_sequence_cmap;
  1110.                         }
  1111.                         return $ret;
  1112.                     }
  1113.                     not_remove_sequence_cmap:
  1114.                     // get_sequence_cmap
  1115.                     if ('/api/sequences/get_cmap' === $pathinfo) {
  1116.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\SequencesController::downloadCurriculumMapAction',  '_route' => 'get_sequence_cmap',);
  1117.                         if (!in_array($canonicalMethod, ['GET'])) {
  1118.                             $allow array_merge($allow, ['GET']);
  1119.                             goto not_get_sequence_cmap;
  1120.                         }
  1121.                         return $ret;
  1122.                     }
  1123.                     not_get_sequence_cmap:
  1124.                 }
  1125.                 elseif (=== strpos($pathinfo'/api/subject')) {
  1126.                     // subjects_list
  1127.                     if ('/api/subjects' === $pathinfo) {
  1128.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\SubjectsController::listSubjectsAction',  '_route' => 'subjects_list',);
  1129.                         if (!in_array($canonicalMethod, ['GET'])) {
  1130.                             $allow array_merge($allow, ['GET']);
  1131.                             goto not_subjects_list;
  1132.                         }
  1133.                         return $ret;
  1134.                     }
  1135.                     not_subjects_list:
  1136.                     // add_subject
  1137.                     if ('/api/subject' === $pathinfo) {
  1138.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\SubjectsController::addSubjectAction',  '_route' => 'add_subject',);
  1139.                         if (!in_array($requestMethod, ['POST'])) {
  1140.                             $allow array_merge($allow, ['POST']);
  1141.                             goto not_add_subject;
  1142.                         }
  1143.                         return $ret;
  1144.                     }
  1145.                     not_add_subject:
  1146.                     // edit_subject
  1147.                     if (preg_match('#^/api/subject/(?P<id>\\d+)$#sD'$pathinfo$matches)) {
  1148.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'edit_subject']), array (  '_controller' => 'AppBundle\\Controller\\SubjectsController::editSubjectAction',));
  1149.                         if (!in_array($requestMethod, ['PUT'])) {
  1150.                             $allow array_merge($allow, ['PUT']);
  1151.                             goto not_edit_subject;
  1152.                         }
  1153.                         return $ret;
  1154.                     }
  1155.                     not_edit_subject:
  1156.                 }
  1157.             }
  1158.             // get_bela_url
  1159.             if ('/api/belaurl' === $pathinfo) {
  1160.                 $ret = array (  '_controller' => 'AppBundle\\Controller\\DefaultController::getBeLAUrl',  '_route' => 'get_bela_url',);
  1161.                 if (!in_array($canonicalMethod, ['GET'])) {
  1162.                     $allow array_merge($allow, ['GET']);
  1163.                     goto not_get_bela_url;
  1164.                 }
  1165.                 return $ret;
  1166.             }
  1167.             not_get_bela_url:
  1168.             if (=== strpos($pathinfo'/api/d')) {
  1169.                 // diplomas_list
  1170.                 if ('/api/diplomas' === $pathinfo) {
  1171.                     $ret = array (  '_controller' => 'AppBundle\\Controller\\DiplomasController::listDiplomasAction',  '_route' => 'diplomas_list',);
  1172.                     if (!in_array($canonicalMethod, ['GET'])) {
  1173.                         $allow array_merge($allow, ['GET']);
  1174.                         goto not_diplomas_list;
  1175.                     }
  1176.                     return $ret;
  1177.                 }
  1178.                 not_diplomas_list:
  1179.                 if (=== strpos($pathinfo'/api/discipline')) {
  1180.                     // disciplines_list
  1181.                     if ('/api/disciplines' === $pathinfo) {
  1182.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\DisciplinesController::listDisciplinesAction',  '_route' => 'disciplines_list',);
  1183.                         if (!in_array($canonicalMethod, ['GET'])) {
  1184.                             $allow array_merge($allow, ['GET']);
  1185.                             goto not_disciplines_list;
  1186.                         }
  1187.                         return $ret;
  1188.                     }
  1189.                     not_disciplines_list:
  1190.                     // add_discipline
  1191.                     if ('/api/discipline' === $pathinfo) {
  1192.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\DisciplinesController::addDisciplineAction',  '_route' => 'add_discipline',);
  1193.                         if (!in_array($requestMethod, ['POST'])) {
  1194.                             $allow array_merge($allow, ['POST']);
  1195.                             goto not_add_discipline;
  1196.                         }
  1197.                         return $ret;
  1198.                     }
  1199.                     not_add_discipline:
  1200.                     // update_discipline
  1201.                     if (preg_match('#^/api/discipline/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  1202.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'update_discipline']), array (  '_controller' => 'AppBundle\\Controller\\DisciplinesController::updateDisciplineAction',));
  1203.                         if (!in_array($requestMethod, ['PUT'])) {
  1204.                             $allow array_merge($allow, ['PUT']);
  1205.                             goto not_update_discipline;
  1206.                         }
  1207.                         return $ret;
  1208.                     }
  1209.                     not_update_discipline:
  1210.                     // remove_discipline
  1211.                     if (preg_match('#^/api/discipline/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  1212.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'remove_discipline']), array (  '_controller' => 'AppBundle\\Controller\\DisciplinesController::removeDisciplineAction',));
  1213.                         if (!in_array($requestMethod, ['DELETE'])) {
  1214.                             $allow array_merge($allow, ['DELETE']);
  1215.                             goto not_remove_discipline;
  1216.                         }
  1217.                         return $ret;
  1218.                     }
  1219.                     not_remove_discipline:
  1220.                     // restore_discipline
  1221.                     if (=== strpos($pathinfo'/api/discipline/restore') && preg_match('#^/api/discipline/restore/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  1222.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'restore_discipline']), array (  '_controller' => 'AppBundle\\Controller\\DisciplinesController::restoreDisciplineAction',));
  1223.                         if (!in_array($requestMethod, ['PATCH'])) {
  1224.                             $allow array_merge($allow, ['PATCH']);
  1225.                             goto not_restore_discipline;
  1226.                         }
  1227.                         return $ret;
  1228.                     }
  1229.                     not_restore_discipline:
  1230.                 }
  1231.                 // nelmio_api_doc_index
  1232.                 if (=== strpos($pathinfo'/api/doc') && preg_match('#^/api/doc(?:/(?P<view>[^/]++))?$#sD'$pathinfo$matches)) {
  1233.                     $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'nelmio_api_doc_index']), array (  '_controller' => 'Nelmio\\ApiDocBundle\\Controller\\ApiDocController::indexAction',  'view' => 'default',));
  1234.                     if (!in_array($canonicalMethod, ['GET'])) {
  1235.                         $allow array_merge($allow, ['GET']);
  1236.                         goto not_nelmio_api_doc_index;
  1237.                     }
  1238.                     return $ret;
  1239.                 }
  1240.                 not_nelmio_api_doc_index:
  1241.             }
  1242.             // focuses_list
  1243.             if ('/api/focuses' === $pathinfo) {
  1244.                 $ret = array (  '_controller' => 'AppBundle\\Controller\\FocusesController::listFocusesAction',  '_route' => 'focuses_list',);
  1245.                 if (!in_array($canonicalMethod, ['GET'])) {
  1246.                     $allow array_merge($allow, ['GET']);
  1247.                     goto not_focuses_list;
  1248.                 }
  1249.                 return $ret;
  1250.             }
  1251.             not_focuses_list:
  1252.             if (=== strpos($pathinfo'/api/grad')) {
  1253.                 if (=== strpos($pathinfo'/api/gradepromotion')) {
  1254.                     // grade_promotions_list
  1255.                     if ('/api/gradepromotions' === $pathinfo) {
  1256.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\GradePromotionsController::listGradePromotionsAction',  '_route' => 'grade_promotions_list',);
  1257.                         if (!in_array($canonicalMethod, ['GET'])) {
  1258.                             $allow array_merge($allow, ['GET']);
  1259.                             goto not_grade_promotions_list;
  1260.                         }
  1261.                         return $ret;
  1262.                     }
  1263.                     not_grade_promotions_list:
  1264.                     // grade_promotion_get
  1265.                     if (preg_match('#^/api/gradepromotion/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  1266.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'grade_promotion_get']), array (  '_controller' => 'AppBundle\\Controller\\GradePromotionsController::getGradePromotionAction',));
  1267.                         if (!in_array($canonicalMethod, ['GET'])) {
  1268.                             $allow array_merge($allow, ['GET']);
  1269.                             goto not_grade_promotion_get;
  1270.                         }
  1271.                         return $ret;
  1272.                     }
  1273.                     not_grade_promotion_get:
  1274.                     // add_gradepromotion
  1275.                     if ('/api/gradepromotion' === $pathinfo) {
  1276.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\GradePromotionsController::addGradePromotionAction',  '_route' => 'add_gradepromotion',);
  1277.                         if (!in_array($requestMethod, ['POST'])) {
  1278.                             $allow array_merge($allow, ['POST']);
  1279.                             goto not_add_gradepromotion;
  1280.                         }
  1281.                         return $ret;
  1282.                     }
  1283.                     not_add_gradepromotion:
  1284.                     // edit_gradepromotion
  1285.                     if (preg_match('#^/api/gradepromotion/(?P<id>\\d+)$#sD'$pathinfo$matches)) {
  1286.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'edit_gradepromotion']), array (  '_controller' => 'AppBundle\\Controller\\GradePromotionsController::editGradePromotionAction',));
  1287.                         if (!in_array($requestMethod, ['PUT'])) {
  1288.                             $allow array_merge($allow, ['PUT']);
  1289.                             goto not_edit_gradepromotion;
  1290.                         }
  1291.                         return $ret;
  1292.                     }
  1293.                     not_edit_gradepromotion:
  1294.                     // delete_gradepromotion
  1295.                     if (preg_match('#^/api/gradepromotion/(?P<id>\\d+)$#sD'$pathinfo$matches)) {
  1296.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'delete_gradepromotion']), array (  '_controller' => 'AppBundle\\Controller\\GradePromotionsController::deleteGradePromotionAction',));
  1297.                         if (!in_array($requestMethod, ['DELETE'])) {
  1298.                             $allow array_merge($allow, ['DELETE']);
  1299.                             goto not_delete_gradepromotion;
  1300.                         }
  1301.                         return $ret;
  1302.                     }
  1303.                     not_delete_gradepromotion:
  1304.                 }
  1305.                 elseif (=== strpos($pathinfo'/api/grades')) {
  1306.                     // grades_list
  1307.                     if ('/api/grades' === $pathinfo) {
  1308.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\GradesController::listGradeDefinitionsAction',  '_route' => 'grades_list',);
  1309.                         if (!in_array($canonicalMethod, ['GET'])) {
  1310.                             $allow array_merge($allow, ['GET']);
  1311.                             goto not_grades_list;
  1312.                         }
  1313.                         return $ret;
  1314.                     }
  1315.                     not_grades_list:
  1316.                     // school_grades_list
  1317.                     if ('/api/grades/school' === $pathinfo) {
  1318.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\GradesController::listSchoolGradesAction',  '_route' => 'school_grades_list',);
  1319.                         if (!in_array($canonicalMethod, ['GET'])) {
  1320.                             $allow array_merge($allow, ['GET']);
  1321.                             goto not_school_grades_list;
  1322.                         }
  1323.                         return $ret;
  1324.                     }
  1325.                     not_school_grades_list:
  1326.                 }
  1327.                 elseif (=== strpos($pathinfo'/api/graduationrequirement')) {
  1328.                     // graduation_years_list
  1329.                     if ('/api/graduationrequirement/years' === $pathinfo) {
  1330.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\GraduationRequirementsController::listGradYearsAction',  '_route' => 'graduation_years_list',);
  1331.                         if (!in_array($canonicalMethod, ['GET'])) {
  1332.                             $allow array_merge($allow, ['GET']);
  1333.                             goto not_graduation_years_list;
  1334.                         }
  1335.                         return $ret;
  1336.                     }
  1337.                     not_graduation_years_list:
  1338.                     // graduation_requirements_list
  1339.                     if ('/api/graduationrequirements' === $pathinfo) {
  1340.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\GraduationRequirementsController::listGradRequirementsAction',  '_route' => 'graduation_requirements_list',);
  1341.                         if (!in_array($canonicalMethod, ['GET'])) {
  1342.                             $allow array_merge($allow, ['GET']);
  1343.                             goto not_graduation_requirements_list;
  1344.                         }
  1345.                         return $ret;
  1346.                     }
  1347.                     not_graduation_requirements_list:
  1348.                     // graduation_requirement_get
  1349.                     if (preg_match('#^/api/graduationrequirement/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  1350.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'graduation_requirement_get']), array (  '_controller' => 'AppBundle\\Controller\\GraduationRequirementsController::getGraduationRequirementAction',));
  1351.                         if (!in_array($canonicalMethod, ['GET'])) {
  1352.                             $allow array_merge($allow, ['GET']);
  1353.                             goto not_graduation_requirement_get;
  1354.                         }
  1355.                         return $ret;
  1356.                     }
  1357.                     not_graduation_requirement_get:
  1358.                     // graduation_requirement_add
  1359.                     if ('/api/graduationrequirement' === $pathinfo) {
  1360.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\GraduationRequirementsController::addGraduationRequirementAction',  '_route' => 'graduation_requirement_add',);
  1361.                         if (!in_array($requestMethod, ['POST'])) {
  1362.                             $allow array_merge($allow, ['POST']);
  1363.                             goto not_graduation_requirement_add;
  1364.                         }
  1365.                         return $ret;
  1366.                     }
  1367.                     not_graduation_requirement_add:
  1368.                     // graduation_requirement_edit
  1369.                     if (preg_match('#^/api/graduationrequirement/(?P<id>\\d+)$#sD'$pathinfo$matches)) {
  1370.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'graduation_requirement_edit']), array (  '_controller' => 'AppBundle\\Controller\\GraduationRequirementsController::editGraduationRequirementAction',));
  1371.                         if (!in_array($requestMethod, ['PUT'])) {
  1372.                             $allow array_merge($allow, ['PUT']);
  1373.                             goto not_graduation_requirement_edit;
  1374.                         }
  1375.                         return $ret;
  1376.                     }
  1377.                     not_graduation_requirement_edit:
  1378.                     // graduation_requirement_delete
  1379.                     if (preg_match('#^/api/graduationrequirement/(?P<id>\\d+)$#sD'$pathinfo$matches)) {
  1380.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'graduation_requirement_delete']), array (  '_controller' => 'AppBundle\\Controller\\GraduationRequirementsController::deleteGraduationRequirementAction',));
  1381.                         if (!in_array($requestMethod, ['DELETE'])) {
  1382.                             $allow array_merge($allow, ['DELETE']);
  1383.                             goto not_graduation_requirement_delete;
  1384.                         }
  1385.                         return $ret;
  1386.                     }
  1387.                     not_graduation_requirement_delete:
  1388.                     if (=== strpos($pathinfo'/api/graduationrequirements')) {
  1389.                         // get_graduation_requirement_diplomas
  1390.                         if ('/api/graduationrequirements/diplomas' === $pathinfo) {
  1391.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\GraduationRequirementsController::getGraduationRequirementDiplomasAction',  '_route' => 'get_graduation_requirement_diplomas',);
  1392.                             if (!in_array($canonicalMethod, ['GET'])) {
  1393.                                 $allow array_merge($allow, ['GET']);
  1394.                                 goto not_get_graduation_requirement_diplomas;
  1395.                             }
  1396.                             return $ret;
  1397.                         }
  1398.                         not_get_graduation_requirement_diplomas:
  1399.                         // list_graduation_requirements_for_school
  1400.                         if (=== strpos($pathinfo'/api/graduationrequirements/school') && preg_match('#^/api/graduationrequirements/school/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  1401.                             $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'list_graduation_requirements_for_school']), array (  '_controller' => 'AppBundle\\Controller\\GraduationRequirementsController::listGradRequirementsForSchoolAction',));
  1402.                             if (!in_array($canonicalMethod, ['GET'])) {
  1403.                                 $allow array_merge($allow, ['GET']);
  1404.                                 goto not_list_graduation_requirements_for_school;
  1405.                             }
  1406.                             return $ret;
  1407.                         }
  1408.                         not_list_graduation_requirements_for_school:
  1409.                         // get_graduation_requirement_external_diplomas
  1410.                         if ('/api/graduationrequirements/external/diplomas' === $pathinfo) {
  1411.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\GraduationRequirementsController::getGraduationRequirementExternalDiplomasAction',  '_route' => 'get_graduation_requirement_external_diplomas',);
  1412.                             if (!in_array($canonicalMethod, ['GET'])) {
  1413.                                 $allow array_merge($allow, ['GET']);
  1414.                                 goto not_get_graduation_requirement_external_diplomas;
  1415.                             }
  1416.                             return $ret;
  1417.                         }
  1418.                         not_get_graduation_requirement_external_diplomas:
  1419.                         // get_graduation_requirement_recipe
  1420.                         if ('/api/graduationrequirements/recipe' === $pathinfo) {
  1421.                             $ret = array (  '_controller' => 'AppBundle\\Controller\\GraduationRequirementsController::getGraduationRequirementAsJSON',  '_route' => 'get_graduation_requirement_recipe',);
  1422.                             if (!in_array($canonicalMethod, ['GET'])) {
  1423.                                 $allow array_merge($allow, ['GET']);
  1424.                                 goto not_get_graduation_requirement_recipe;
  1425.                             }
  1426.                             return $ret;
  1427.                         }
  1428.                         not_get_graduation_requirement_recipe:
  1429.                     }
  1430.                     // diploma_list_ordering
  1431.                     if ('/api/graduationrequirement/ordering' === $pathinfo) {
  1432.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\GraduationRequirementsController::updateDiplomaOrdering',  '_route' => 'diploma_list_ordering',);
  1433.                         if (!in_array($requestMethod, ['POST'])) {
  1434.                             $allow array_merge($allow, ['POST']);
  1435.                             goto not_diploma_list_ordering;
  1436.                         }
  1437.                         return $ret;
  1438.                     }
  1439.                     not_diploma_list_ordering:
  1440.                 }
  1441.             }
  1442.             // intensities_list
  1443.             if ('/api/intensities' === $pathinfo) {
  1444.                 $ret = array (  '_controller' => 'AppBundle\\Controller\\IntensitiesController::listIntensitiesAction',  '_route' => 'intensities_list',);
  1445.                 if (!in_array($canonicalMethod, ['GET'])) {
  1446.                     $allow array_merge($allow, ['GET']);
  1447.                     goto not_intensities_list;
  1448.                 }
  1449.                 return $ret;
  1450.             }
  1451.             not_intensities_list:
  1452.             if (=== strpos($pathinfo'/api/l')) {
  1453.                 // year_list
  1454.                 if ('/api/l/y' === $pathinfo) {
  1455.                     $ret = array (  '_controller' => 'AppBundle\\Controller\\ListController::listYearsAction',  '_route' => 'year_list',);
  1456.                     if (!in_array($canonicalMethod, ['GET'])) {
  1457.                         $allow array_merge($allow, ['GET']);
  1458.                         goto not_year_list;
  1459.                     }
  1460.                     return $ret;
  1461.                 }
  1462.                 not_year_list:
  1463.                 // list_active_users
  1464.                 if ('/api/list/active/users' === $pathinfo) {
  1465.                     $ret = array (  '_controller' => 'AppBundle\\Controller\\ListController::listActiveUsers',  '_route' => 'list_active_users',);
  1466.                     if (!in_array($canonicalMethod, ['GET'])) {
  1467.                         $allow array_merge($allow, ['GET']);
  1468.                         goto not_list_active_users;
  1469.                     }
  1470.                     return $ret;
  1471.                 }
  1472.                 not_list_active_users:
  1473.                 // login
  1474.                 if ('/api/login' === $pathinfo) {
  1475.                     $ret = array (  '_controller' => 'AppBundle\\Controller\\SecurityController::loginAction',  '_route' => 'login',);
  1476.                     if (!in_array($requestMethod, ['POST'])) {
  1477.                         $allow array_merge($allow, ['POST']);
  1478.                         goto not_login;
  1479.                     }
  1480.                     return $ret;
  1481.                 }
  1482.                 not_login:
  1483.                 // logout
  1484.                 if ('/api/logout' === $pathinfo) {
  1485.                     $ret = array (  '_controller' => 'AppBundle\\Controller\\SecurityController::logoutAction',  '_route' => 'logout',);
  1486.                     if (!in_array($canonicalMethod, ['GET'])) {
  1487.                         $allow array_merge($allow, ['GET']);
  1488.                         goto not_logout;
  1489.                     }
  1490.                     return $ret;
  1491.                 }
  1492.                 not_logout:
  1493.             }
  1494.             elseif (=== strpos($pathinfo'/api/metacourses')) {
  1495.                 // meta_courses_list
  1496.                 if ('/api/metacourses' === $pathinfo) {
  1497.                     $ret = array (  '_controller' => 'AppBundle\\Controller\\MetaCoursesController::listMetaCoursesAction',  '_route' => 'meta_courses_list',);
  1498.                     if (!in_array($canonicalMethod, ['GET'])) {
  1499.                         $allow array_merge($allow, ['GET']);
  1500.                         goto not_meta_courses_list;
  1501.                     }
  1502.                     return $ret;
  1503.                 }
  1504.                 not_meta_courses_list:
  1505.                 // used_meta_courses_list
  1506.                 if ('/api/metacourses/used' === $pathinfo) {
  1507.                     $ret = array (  '_controller' => 'AppBundle\\Controller\\MetaCoursesController::listUsedMetaCoursesAction',  '_route' => 'used_meta_courses_list',);
  1508.                     if (!in_array($canonicalMethod, ['GET'])) {
  1509.                         $allow array_merge($allow, ['GET']);
  1510.                         goto not_used_meta_courses_list;
  1511.                     }
  1512.                     return $ret;
  1513.                 }
  1514.                 not_used_meta_courses_list:
  1515.                 if (=== strpos($pathinfo'/api/metacourses/credits')) {
  1516.                     // meta_courses_list_withcredits
  1517.                     if ('/api/metacourses/credits' === $pathinfo) {
  1518.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\MetaCoursesController::listMetaCoursesWithCreditsAction',  '_route' => 'meta_courses_list_withcredits',);
  1519.                         if (!in_array($canonicalMethod, ['GET'])) {
  1520.                             $allow array_merge($allow, ['GET']);
  1521.                             goto not_meta_courses_list_withcredits;
  1522.                         }
  1523.                         return $ret;
  1524.                     }
  1525.                     not_meta_courses_list_withcredits:
  1526.                     // update_meta_course_credits
  1527.                     if (preg_match('#^/api/metacourses/credits/(?P<id>\\d+)$#sD'$pathinfo$matches)) {
  1528.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'update_meta_course_credits']), array (  '_controller' => 'AppBundle\\Controller\\MetaCoursesController::editMetaCourseCreditsAction',));
  1529.                         if (!in_array($requestMethod, ['PUT'])) {
  1530.                             $allow array_merge($allow, ['PUT']);
  1531.                             goto not_update_meta_course_credits;
  1532.                         }
  1533.                         return $ret;
  1534.                     }
  1535.                     not_update_meta_course_credits:
  1536.                 }
  1537.                 // add_meta_course
  1538.                 if ('/api/metacourses' === $pathinfo) {
  1539.                     $ret = array (  '_controller' => 'AppBundle\\Controller\\MetaCoursesController::addMetaCourseAction',  '_route' => 'add_meta_course',);
  1540.                     if (!in_array($requestMethod, ['POST'])) {
  1541.                         $allow array_merge($allow, ['POST']);
  1542.                         goto not_add_meta_course;
  1543.                     }
  1544.                     return $ret;
  1545.                 }
  1546.                 not_add_meta_course:
  1547.                 // update_meta_course
  1548.                 if (preg_match('#^/api/metacourses/(?P<id>\\d+)$#sD'$pathinfo$matches)) {
  1549.                     $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'update_meta_course']), array (  '_controller' => 'AppBundle\\Controller\\MetaCoursesController::updateMetaCourseAction',));
  1550.                     if (!in_array($requestMethod, ['PUT'])) {
  1551.                         $allow array_merge($allow, ['PUT']);
  1552.                         goto not_update_meta_course;
  1553.                     }
  1554.                     return $ret;
  1555.                 }
  1556.                 not_update_meta_course:
  1557.                 // clean_unused_meta_courses
  1558.                 if ('/api/metacourses/cleanunused' === $pathinfo) {
  1559.                     $ret = array (  '_controller' => 'AppBundle\\Controller\\MetaCoursesController::cleanUnusedMetaCoursesAction',  '_route' => 'clean_unused_meta_courses',);
  1560.                     if (!in_array($requestMethod, ['DELETE'])) {
  1561.                         $allow array_merge($allow, ['DELETE']);
  1562.                         goto not_clean_unused_meta_courses;
  1563.                     }
  1564.                     return $ret;
  1565.                 }
  1566.                 not_clean_unused_meta_courses:
  1567.                 // unused_count_meta_courses
  1568.                 if ('/api/metacourses/unusedcount' === $pathinfo) {
  1569.                     $ret = array (  '_controller' => 'AppBundle\\Controller\\MetaCoursesController::getUnusedCountMetaCoursesAction',  '_route' => 'unused_count_meta_courses',);
  1570.                     if (!in_array($canonicalMethod, ['GET'])) {
  1571.                         $allow array_merge($allow, ['GET']);
  1572.                         goto not_unused_count_meta_courses;
  1573.                     }
  1574.                     return $ret;
  1575.                 }
  1576.                 not_unused_count_meta_courses:
  1577.                 // set_meta_course_validity
  1578.                 if (=== strpos($pathinfo'/api/metacourses/validity') && preg_match('#^/api/metacourses/validity/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  1579.                     $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'set_meta_course_validity']), array (  '_controller' => 'AppBundle\\Controller\\MetaCoursesController::setMetaCourseValidityAction',));
  1580.                     if (!in_array($requestMethod, ['POST'])) {
  1581.                         $allow array_merge($allow, ['POST']);
  1582.                         goto not_set_meta_course_validity;
  1583.                     }
  1584.                     return $ret;
  1585.                 }
  1586.                 not_set_meta_course_validity:
  1587.                 // set_meta_course_name
  1588.                 if (=== strpos($pathinfo'/api/metacourses/rename') && preg_match('#^/api/metacourses/rename/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  1589.                     $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'set_meta_course_name']), array (  '_controller' => 'AppBundle\\Controller\\MetaCoursesController::setMetaCourseNameAction',));
  1590.                     if (!in_array($requestMethod, ['POST'])) {
  1591.                         $allow array_merge($allow, ['POST']);
  1592.                         goto not_set_meta_course_name;
  1593.                     }
  1594.                     return $ret;
  1595.                 }
  1596.                 not_set_meta_course_name:
  1597.             }
  1598.             elseif (=== strpos($pathinfo'/api/p')) {
  1599.                 if (=== strpos($pathinfo'/api/pdf')) {
  1600.                     // export_school_catalog
  1601.                     if (=== strpos($pathinfo'/api/pdf/school/catalog') && preg_match('#^/api/pdf/school/catalog/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  1602.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'export_school_catalog']), array (  '_controller' => 'AppBundle\\Controller\\PdfExportController::exportSchoolCatalog',));
  1603.                         if (!in_array($canonicalMethod, ['GET'])) {
  1604.                             $allow array_merge($allow, ['GET']);
  1605.                             goto not_export_school_catalog;
  1606.                         }
  1607.                         return $ret;
  1608.                     }
  1609.                     not_export_school_catalog:
  1610.                     // generate_all_pdf_exports
  1611.                     if ('/api/pdf/exports' === $pathinfo) {
  1612.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\PdfExportController::generatePdfExports',  '_route' => 'generate_all_pdf_exports',);
  1613.                         if (!in_array($requestMethod, ['POST'])) {
  1614.                             $allow array_merge($allow, ['POST']);
  1615.                             goto not_generate_all_pdf_exports;
  1616.                         }
  1617.                         return $ret;
  1618.                     }
  1619.                     not_generate_all_pdf_exports:
  1620.                     if (=== strpos($pathinfo'/api/pdf/graduationrequirement')) {
  1621.                         // export_graduation_requirement_for_school
  1622.                         if (=== strpos($pathinfo'/api/pdf/graduationrequirement/school') && preg_match('#^/api/pdf/graduationrequirement/school/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  1623.                             $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'export_graduation_requirement_for_school']), array (  '_controller' => 'AppBundle\\Controller\\PdfExportController::exportGraduationRequirementForSchool',));
  1624.                             if (!in_array($canonicalMethod, ['GET'])) {
  1625.                                 $allow array_merge($allow, ['GET']);
  1626.                                 goto not_export_graduation_requirement_for_school;
  1627.                             }
  1628.                             return $ret;
  1629.                         }
  1630.                         not_export_graduation_requirement_for_school:
  1631.                         // export_graduation_requirement
  1632.                         if (preg_match('#^/api/pdf/graduationrequirement/(?P<id>\\d+)$#sD'$pathinfo$matches)) {
  1633.                             $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'export_graduation_requirement']), array (  '_controller' => 'AppBundle\\Controller\\PdfExportController::exportGraduationRequirement',));
  1634.                             if (!in_array($canonicalMethod, ['GET'])) {
  1635.                                 $allow array_merge($allow, ['GET']);
  1636.                                 goto not_export_graduation_requirement;
  1637.                             }
  1638.                             return $ret;
  1639.                         }
  1640.                         not_export_graduation_requirement:
  1641.                     }
  1642.                     elseif (=== strpos($pathinfo'/api/pdf/gradepromotion')) {
  1643.                         // export_grade_promotion_for_school
  1644.                         if (=== strpos($pathinfo'/api/pdf/gradepromotion/school') && preg_match('#^/api/pdf/gradepromotion/school/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  1645.                             $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'export_grade_promotion_for_school']), array (  '_controller' => 'AppBundle\\Controller\\PdfExportController::exportGradePromotionForSchool',));
  1646.                             if (!in_array($canonicalMethod, ['GET'])) {
  1647.                                 $allow array_merge($allow, ['GET']);
  1648.                                 goto not_export_grade_promotion_for_school;
  1649.                             }
  1650.                             return $ret;
  1651.                         }
  1652.                         not_export_grade_promotion_for_school:
  1653.                         // export_grade_promotion_for_d4
  1654.                         if (preg_match('#^/api/pdf/gradepromotion/(?P<id>[^/]++)$#sD'$pathinfo$matches)) {
  1655.                             $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'export_grade_promotion_for_d4']), array (  '_controller' => 'AppBundle\\Controller\\PdfExportController::exportGradePromotionForD4',));
  1656.                             if (!in_array($canonicalMethod, ['GET'])) {
  1657.                                 $allow array_merge($allow, ['GET']);
  1658.                                 goto not_export_grade_promotion_for_d4;
  1659.                             }
  1660.                             return $ret;
  1661.                         }
  1662.                         not_export_grade_promotion_for_d4:
  1663.                     }
  1664.                     // export_clusters_to_pdf
  1665.                     if ('/api/pdf/clusters' === $pathinfo) {
  1666.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\PdfExportController::exportClustersToPdf',  '_route' => 'export_clusters_to_pdf',);
  1667.                         if (!in_array($canonicalMethod, ['GET'])) {
  1668.                             $allow array_merge($allow, ['GET']);
  1669.                             goto not_export_clusters_to_pdf;
  1670.                         }
  1671.                         return $ret;
  1672.                     }
  1673.                     not_export_clusters_to_pdf:
  1674.                 }
  1675.                 // place_type_list
  1676.                 if ('/api/placetypes' === $pathinfo) {
  1677.                     $ret = array (  '_controller' => 'AppBundle\\Controller\\PlaceTypesController::getPlaceTypesAction',  '_route' => 'place_type_list',);
  1678.                     if (!in_array($canonicalMethod, ['GET'])) {
  1679.                         $allow array_merge($allow, ['GET']);
  1680.                         goto not_place_type_list;
  1681.                     }
  1682.                     return $ret;
  1683.                 }
  1684.                 not_place_type_list:
  1685.                 if (=== strpos($pathinfo'/api/programs')) {
  1686.                     // programs_list
  1687.                     if ('/api/programs' === $pathinfo) {
  1688.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\ProgramsController::listProgramsAction',  '_route' => 'programs_list',);
  1689.                         if (!in_array($canonicalMethod, ['GET'])) {
  1690.                             $allow array_merge($allow, ['GET']);
  1691.                             goto not_programs_list;
  1692.                         }
  1693.                         return $ret;
  1694.                     }
  1695.                     not_programs_list:
  1696.                     // active_programs_list
  1697.                     if ('/api/programs/active' === $pathinfo) {
  1698.                         $ret = array (  '_controller' => 'AppBundle\\Controller\\ProgramsController::listProgramsForRegulatorAndGradeAction',  '_route' => 'active_programs_list',);
  1699.                         if (!in_array($canonicalMethod, ['GET'])) {
  1700.                             $allow array_merge($allow, ['GET']);
  1701.                             goto not_active_programs_list;
  1702.                         }
  1703.                         return $ret;
  1704.                     }
  1705.                     not_active_programs_list:
  1706.                     // programs_for_regulator
  1707.                     if (=== strpos($pathinfo'/api/programs/regulator') && preg_match('#^/api/programs/regulator/(?P<id>\\d+)$#sD'$pathinfo$matches)) {
  1708.                         $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'programs_for_regulator']), array (  '_controller' => 'AppBundle\\Controller\\ProgramsController::listProgramsForRegulatorAction',));
  1709.                         if (!in_array($canonicalMethod, ['GET'])) {
  1710.                             $allow array_merge($allow, ['GET']);
  1711.                             goto not_programs_for_regulator;
  1712.                         }
  1713.                         return $ret;
  1714.                     }
  1715.                     not_programs_for_regulator:
  1716.                 }
  1717.             }
  1718.             elseif (=== strpos($pathinfo'/api/region')) {
  1719.                 // regions_list
  1720.                 if ('/api/regions' === $pathinfo) {
  1721.                     $ret = array (  '_controller' => 'AppBundle\\Controller\\RegionsController::listRegionsAction',  '_route' => 'regions_list',);
  1722.                     if (!in_array($canonicalMethod, ['GET'])) {
  1723.                         $allow array_merge($allow, ['GET']);
  1724.                         goto not_regions_list;
  1725.                     }
  1726.                     return $ret;
  1727.                 }
  1728.                 not_regions_list:
  1729.                 // add_region
  1730.                 if ('/api/region' === $pathinfo) {
  1731.                     $ret = array (  '_controller' => 'AppBundle\\Controller\\RegionsController::addRegionAction',  '_route' => 'add_region',);
  1732.                     if (!in_array($requestMethod, ['POST'])) {
  1733.                         $allow array_merge($allow, ['POST']);
  1734.                         goto not_add_region;
  1735.                     }
  1736.                     return $ret;
  1737.                 }
  1738.                 not_add_region:
  1739.             }
  1740.             elseif (=== strpos($pathinfo'/api/regulator')) {
  1741.                 // regulators_list
  1742.                 if ('/api/regulators' === $pathinfo) {
  1743.                     $ret = array (  '_controller' => 'AppBundle\\Controller\\RegulatorsController::listRegulatorsAction',  '_route' => 'regulators_list',);
  1744.                     if (!in_array($canonicalMethod, ['GET'])) {
  1745.                         $allow array_merge($allow, ['GET']);
  1746.                         goto not_regulators_list;
  1747.                     }
  1748.                     return $ret;
  1749.                 }
  1750.                 not_regulators_list:
  1751.                 // add_regulator
  1752.                 if ('/api/regulator' === $pathinfo) {
  1753.                     $ret = array (  '_controller' => 'AppBundle\\Controller\\RegulatorsController::addRegulatorAction',  '_route' => 'add_regulator',);
  1754.                     if (!in_array($requestMethod, ['POST'])) {
  1755.                         $allow array_merge($allow, ['POST']);
  1756.                         goto not_add_regulator;
  1757.                     }
  1758.                     return $ret;
  1759.                 }
  1760.                 not_add_regulator:
  1761.                 // edit_regulator
  1762.                 if (preg_match('#^/api/regulator/(?P<id>\\d+)$#sD'$pathinfo$matches)) {
  1763.                     $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'edit_regulator']), array (  '_controller' => 'AppBundle\\Controller\\RegulatorsController::updateRegulatorAction',));
  1764.                     if (!in_array($requestMethod, ['PUT'])) {
  1765.                         $allow array_merge($allow, ['PUT']);
  1766.                         goto not_edit_regulator;
  1767.                     }
  1768.                     return $ret;
  1769.                 }
  1770.                 not_edit_regulator:
  1771.                 // disable_regulator
  1772.                 if (preg_match('#^/api/regulator/(?P<id>\\d+)$#sD'$pathinfo$matches)) {
  1773.                     $ret $this->mergeDefaults(array_replace($matches, ['_route' => 'disable_regulator']), array (  '_controller' => 'AppBundle\\Controller\\RegulatorsController::disableRegulatorAction',));
  1774.                     if (!in_array($requestMethod, ['DELETE'])) {
  1775.                         $allow array_merge($allow, ['DELETE']);
  1776.                         goto not_disable_regulator;
  1777.                     }
  1778.                     return $ret;
  1779.                 }
  1780.                 not_disable_regulator:
  1781.             }
  1782.             // whoami
  1783.             if ('/api/whoami' === $pathinfo) {
  1784.                 $ret = array (  '_controller' => 'AppBundle\\Controller\\SecurityController::whoAmIAction',  '_route' => 'whoami',);
  1785.                 if (!in_array($canonicalMethod, ['GET'])) {
  1786.                     $allow array_merge($allow, ['GET']);
  1787.                     goto not_whoami;
  1788.                 }
  1789.                 return $ret;
  1790.             }
  1791.             not_whoami:
  1792.             // term_types_list
  1793.             if ('/api/termtypes' === $pathinfo) {
  1794.                 $ret = array (  '_controller' => 'AppBundle\\Controller\\TermTypesController::listTermTypesAction',  '_route' => 'term_types_list',);
  1795.                 if (!in_array($canonicalMethod, ['GET'])) {
  1796.                     $allow array_merge($allow, ['GET']);
  1797.                     goto not_term_types_list;
  1798.                 }
  1799.                 return $ret;
  1800.             }
  1801.             not_term_types_list:
  1802.             if (=== strpos($pathinfo'/api/users/admins')) {
  1803.                 // admins_list
  1804.                 if ('/api/users/admins' === $pathinfo) {
  1805.                     $ret = array (  '_controller' => 'AppBundle\\Controller\\UserAdminController::listUserAdminAction',  '_route' => 'admins_list',);
  1806.                     if (!in_array($canonicalMethod, ['GET'])) {
  1807.                         $allow array_merge($allow, ['GET']);
  1808.                         goto not_admins_list;
  1809.                     }
  1810.                     return $ret;
  1811.                 }
  1812.                 not_admins_list:
  1813.                 // add_admin
  1814.                 if ('/api/users/admins' === $pathinfo) {
  1815.                     $ret = array (  '_controller' => 'AppBundle\\Controller\\UserAdminController::addUserAdminAction',  '_route' => 'add_admin',);
  1816.                     if (!in_array($requestMethod, ['POST'])) {
  1817.                         $allow array_merge($allow, ['POST']);
  1818.                         goto not_add_admin;
  1819.                     }
  1820.                     return $ret;
  1821.                 }
  1822.                 not_add_admin:
  1823.                 // remove_admin
  1824.                 if ('/api/users/admins' === $pathinfo) {
  1825.                     $ret = array (  '_controller' => 'AppBundle\\Controller\\UserAdminController::removeUserAdminAction',  '_route' => 'remove_admin',);
  1826.                     if (!in_array($requestMethod, ['DELETE'])) {
  1827.                         $allow array_merge($allow, ['DELETE']);
  1828.                         goto not_remove_admin;
  1829.                     }
  1830.                     return $ret;
  1831.                 }
  1832.                 not_remove_admin:
  1833.             }
  1834.         }
  1835.         elseif (=== strpos($pathinfo'/app')) {
  1836.             // app_default_app
  1837.             if ('/app' === $trimmedPathinfo) {
  1838.                 $ret = array (  '_controller' => 'AppBundle\\Controller\\DefaultController::appAction',  '_route' => 'app_default_app',);
  1839.                 if ('/' === substr($pathinfo, -1)) {
  1840.                     // no-op
  1841.                 } elseif ('GET' !== $canonicalMethod) {
  1842.                     goto not_app_default_app;
  1843.                 } else {
  1844.                     return array_replace($ret$this->redirect($rawPathinfo.'/''app_default_app'));
  1845.                 }
  1846.                 return $ret;
  1847.             }
  1848.             not_app_default_app:
  1849.             // app_frontend
  1850.             if (preg_match('#^/app(?:/(?P<routing>.+))?$#sD'$pathinfo$matches)) {
  1851.                 return $this->mergeDefaults(array_replace($matches, ['_route' => 'app_frontend']), array (  'routing' => 1,  '_controller' => 'AppBundle\\Controller\\DefaultController::appAction',));
  1852.             }
  1853.         }
  1854.         // index
  1855.         if ('' === $trimmedPathinfo) {
  1856.             $ret = array (  '_controller' => 'AppBundle\\Controller\\DefaultController::indexAction',  '_route' => 'index',);
  1857.             if ('/' === substr($pathinfo, -1)) {
  1858.                 // no-op
  1859.             } elseif ('GET' !== $canonicalMethod) {
  1860.                 goto not_index;
  1861.             } else {
  1862.                 return array_replace($ret$this->redirect($rawPathinfo.'/''index'));
  1863.             }
  1864.             return $ret;
  1865.         }
  1866.         not_index:
  1867.         if ('/' === $pathinfo && !$allow) {
  1868.             throw new Symfony\Component\Routing\Exception\NoConfigurationException();
  1869.         }
  1870.         throw count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
  1871.     }
  1872. }