<?php
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
use Symfony\Component\Routing\RequestContext;
/**
* This class has been auto-generated
* by the Symfony Routing Component.
*/
class appDevDebugProjectContainerUrlMatcher extends Symfony\Bundle\FrameworkBundle\Routing\RedirectableUrlMatcher
{
public function __construct(RequestContext $context)
{
$this->context = $context;
}
public function match($rawPathinfo)
{
$allow = [];
$pathinfo = rawurldecode($rawPathinfo);
$trimmedPathinfo = rtrim($pathinfo, '/');
$context = $this->context;
$request = $this->request ?: $this->createRequest($pathinfo);
$requestMethod = $canonicalMethod = $context->getMethod();
if ('HEAD' === $requestMethod) {
$canonicalMethod = 'GET';
}
if (0 === strpos($pathinfo, '/_')) {
// _wdt
if (0 === strpos($pathinfo, '/_wdt') && preg_match('#^/_wdt/(?P<token>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => '_wdt']), array ( '_controller' => 'web_profiler.controller.profiler:toolbarAction',));
}
if (0 === strpos($pathinfo, '/_profiler')) {
// _profiler_home
if ('/_profiler' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'web_profiler.controller.profiler:homeAction', '_route' => '_profiler_home',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not__profiler_home;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', '_profiler_home'));
}
return $ret;
}
not__profiler_home:
if (0 === strpos($pathinfo, '/_profiler/search')) {
// _profiler_search
if ('/_profiler/search' === $pathinfo) {
return array ( '_controller' => 'web_profiler.controller.profiler:searchAction', '_route' => '_profiler_search',);
}
// _profiler_search_bar
if ('/_profiler/search_bar' === $pathinfo) {
return array ( '_controller' => 'web_profiler.controller.profiler:searchBarAction', '_route' => '_profiler_search_bar',);
}
}
// _profiler_phpinfo
if ('/_profiler/phpinfo' === $pathinfo) {
return array ( '_controller' => 'web_profiler.controller.profiler:phpinfoAction', '_route' => '_profiler_phpinfo',);
}
// _profiler_search_results
if (preg_match('#^/_profiler/(?P<token>[^/]++)/search/results$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler_search_results']), array ( '_controller' => 'web_profiler.controller.profiler:searchResultsAction',));
}
// _profiler_open_file
if ('/_profiler/open' === $pathinfo) {
return array ( '_controller' => 'web_profiler.controller.profiler:openAction', '_route' => '_profiler_open_file',);
}
// _profiler
if (preg_match('#^/_profiler/(?P<token>[^/]++)$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler']), array ( '_controller' => 'web_profiler.controller.profiler:panelAction',));
}
// _profiler_router
if (preg_match('#^/_profiler/(?P<token>[^/]++)/router$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler_router']), array ( '_controller' => 'web_profiler.controller.router:panelAction',));
}
// _profiler_exception
if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler_exception']), array ( '_controller' => 'web_profiler.controller.exception:showAction',));
}
// _profiler_exception_css
if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception\\.css$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => '_profiler_exception_css']), array ( '_controller' => 'web_profiler.controller.exception:cssAction',));
}
}
// _twig_error_test
if (0 === strpos($pathinfo, '/_error') && preg_match('#^/_error/(?P<code>\\d+)(?:\\.(?P<_format>[^/]++))?$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => '_twig_error_test']), array ( '_controller' => 'twig.controller.preview_error:previewErrorPageAction', '_format' => 'html',));
}
}
elseif (0 === strpos($pathinfo, '/api')) {
if (0 === strpos($pathinfo, '/api/addon')) {
if (0 === strpos($pathinfo, '/api/addons')) {
// addons_list
if ('/api/addons' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\AddonsController::listAddonsAction', '_route' => 'addons_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_addons_list;
}
return $ret;
}
not_addons_list:
// add_addon
if ('/api/addons' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\AddonsController::addAddonAction', '_route' => 'add_addon',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_add_addon;
}
return $ret;
}
not_add_addon:
// update_addon
if (preg_match('#^/api/addons/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'update_addon']), array ( '_controller' => 'AppBundle\\Controller\\AddonsController::updateAddonAction',));
if (!in_array($requestMethod, ['PUT'])) {
$allow = array_merge($allow, ['PUT']);
goto not_update_addon;
}
return $ret;
}
not_update_addon:
}
// addon_ids_list
if ('/api/addon/ids' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\AddonsController::listAddonIdsAction', '_route' => 'addon_ids_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_addon_ids_list;
}
return $ret;
}
not_addon_ids_list:
// get_addon_status
if (0 === strpos($pathinfo, '/api/addon/status') && preg_match('#^/api/addon/status/(?P<id>\\d+)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'get_addon_status']), array ( '_controller' => 'AppBundle\\Controller\\AddonsController::getAddonStatusAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_get_addon_status;
}
return $ret;
}
not_get_addon_status:
// delete_addon
if (preg_match('#^/api/addon/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'delete_addon']), array ( '_controller' => 'AppBundle\\Controller\\AddonsController::removeAddonAction',));
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_delete_addon;
}
return $ret;
}
not_delete_addon:
// count_of_not_synced_addons
if ('/api/addons/not_synced' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\AddonsController::notSyncedAddons', '_route' => 'count_of_not_synced_addons',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_count_of_not_synced_addons;
}
return $ret;
}
not_count_of_not_synced_addons:
// import_addons_to_bela
if ('/api/addons/to/bela' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\AddonsController::importAddonsToBeLA', '_route' => 'import_addons_to_bela',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_import_addons_to_bela;
}
return $ret;
}
not_import_addons_to_bela:
}
elseif (0 === strpos($pathinfo, '/api/c')) {
if (0 === strpos($pathinfo, '/api/cluster/arrangement')) {
// cluster_arrangement_list
if ('/api/cluster/arrangements' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\ClusterArrangementsController::listClusterArrangementAction', '_route' => 'cluster_arrangement_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_cluster_arrangement_list;
}
return $ret;
}
not_cluster_arrangement_list:
// add_cluster_arrangement
if ('/api/cluster/arrangement' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\ClusterArrangementsController::addClusterArrangementAction', '_route' => 'add_cluster_arrangement',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_add_cluster_arrangement;
}
return $ret;
}
not_add_cluster_arrangement:
// update_cluster_arrangement
if (preg_match('#^/api/cluster/arrangement/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'update_cluster_arrangement']), array ( '_controller' => 'AppBundle\\Controller\\ClusterArrangementsController::updateClusterArrangementAction',));
if (!in_array($requestMethod, ['PUT'])) {
$allow = array_merge($allow, ['PUT']);
goto not_update_cluster_arrangement;
}
return $ret;
}
not_update_cluster_arrangement:
// delete_cluster_arrangement
if (preg_match('#^/api/cluster/arrangement/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'delete_cluster_arrangement']), array ( '_controller' => 'AppBundle\\Controller\\ClusterArrangementsController::removeClusterArrangementAction',));
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_delete_cluster_arrangement;
}
return $ret;
}
not_delete_cluster_arrangement:
// used_cluster_arrangements
if ('/api/cluster/arrangements/used' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\ClusterArrangementsController::getUsedClusterArrangementsAction', '_route' => 'used_cluster_arrangements',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_used_cluster_arrangements;
}
return $ret;
}
not_used_cluster_arrangements:
// arrangement_list_ordering
if ('/api/cluster/arrangements/ordering' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\ClusterArrangementsController::updateArrangementOrdering', '_route' => 'arrangement_list_ordering',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_arrangement_list_ordering;
}
return $ret;
}
not_arrangement_list_ordering:
}
elseif (0 === strpos($pathinfo, '/api/clusters')) {
// clusters_list
if ('/api/clusters' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\ClustersController::listClustersAction', '_route' => 'clusters_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_clusters_list;
}
return $ret;
}
not_clusters_list:
// clusters_credits_list
if ('/api/clusters/credits' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\ClustersController::listClustersWithCreditsAction', '_route' => 'clusters_credits_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_clusters_credits_list;
}
return $ret;
}
not_clusters_credits_list:
// update_cluster
if ('/api/clusters' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\ClustersController::updateClusterAction', '_route' => 'update_cluster',);
if (!in_array($requestMethod, ['PATCH'])) {
$allow = array_merge($allow, ['PATCH']);
goto not_update_cluster;
}
return $ret;
}
not_update_cluster:
// add_cluster
if ('/api/clusters' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\ClustersController::addClusterAction', '_route' => 'add_cluster',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_add_cluster;
}
return $ret;
}
not_add_cluster:
// remove_cluster
if ('/api/clusters' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\ClustersController::removeClusterAction', '_route' => 'remove_cluster',);
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_remove_cluster;
}
return $ret;
}
not_remove_cluster:
// update_clusters_ordering
if ('/api/clusters/ordering' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\ClustersController::updateClustersOrderingAction', '_route' => 'update_clusters_ordering',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_update_clusters_ordering;
}
return $ret;
}
not_update_clusters_ordering:
}
elseif (0 === strpos($pathinfo, '/api/course')) {
// course_categories_list
if ('/api/course/categories' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\CourseCategoriesController::listCourseCategoriesAction', '_route' => 'course_categories_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_course_categories_list;
}
return $ret;
}
not_course_categories_list:
// course_level_list
if ('/api/course/levels' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\CourseLevelController::listCourseLevelsAction', '_route' => 'course_level_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_course_level_list;
}
return $ret;
}
not_course_level_list:
if (0 === strpos($pathinfo, '/api/course/variant')) {
if (0 === strpos($pathinfo, '/api/course/variants')) {
// course_variants_list
if ('/api/course/variants' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\CourseVariantsController::listCourseVariantsAction', '_route' => 'course_variants_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_course_variants_list;
}
return $ret;
}
not_course_variants_list:
// course_variants_sequences_list
if ('/api/course/variants/sequences' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\CourseVariantsController::listCourseVariantsSequencesAction', '_route' => 'course_variants_sequences_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_course_variants_sequences_list;
}
return $ret;
}
not_course_variants_sequences_list:
// course_variants_region_list
if (0 === strpos($pathinfo, '/api/course/variants/region') && preg_match('#^/api/course/variants/region/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'course_variants_region_list']), array ( '_controller' => 'AppBundle\\Controller\\CourseVariantsController::listCourseVariantsRegionAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_course_variants_region_list;
}
return $ret;
}
not_course_variants_region_list:
}
// get_course_variant
if (preg_match('#^/api/course/variant/(?P<id>\\d+)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'get_course_variant']), array ( '_controller' => 'AppBundle\\Controller\\CourseVariantsController::getCourseVariantAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_get_course_variant;
}
return $ret;
}
not_get_course_variant:
// add_course_variant
if ('/api/course/variant' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\CourseVariantsController::addCourseVariantAction', '_route' => 'add_course_variant',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_add_course_variant;
}
return $ret;
}
not_add_course_variant:
// update_course_variant
if (preg_match('#^/api/course/variant/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'update_course_variant']), array ( '_controller' => 'AppBundle\\Controller\\CourseVariantsController::updateCourseVariantAction',));
if (!in_array($requestMethod, ['PUT'])) {
$allow = array_merge($allow, ['PUT']);
goto not_update_course_variant;
}
return $ret;
}
not_update_course_variant:
// delete_course_variant
if (preg_match('#^/api/course/variant/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'delete_course_variant']), array ( '_controller' => 'AppBundle\\Controller\\CourseVariantsController::removeCourseVariantAction',));
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_delete_course_variant;
}
return $ret;
}
not_delete_course_variant:
if (0 === strpos($pathinfo, '/api/course/variants')) {
// counts_course_variants_by_courses
if ('/api/course/variants/counts' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\CourseVariantsController::getCourseVariantsCountsByCoursesAction', '_route' => 'counts_course_variants_by_courses',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_counts_course_variants_by_courses;
}
return $ret;
}
not_counts_course_variants_by_courses:
// count_of_not_synced_course_variants
if ('/api/course/variants/not_synced' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\CourseVariantsController::notSyncedCourseVariants', '_route' => 'count_of_not_synced_course_variants',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_count_of_not_synced_course_variants;
}
return $ret;
}
not_count_of_not_synced_course_variants:
// import_course_variants_to_bela
if ('/api/course/variants/to/bela' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\CourseVariantsController::importCourseVariantsToBeLA', '_route' => 'import_course_variants_to_bela',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_import_course_variants_to_bela;
}
return $ret;
}
not_import_course_variants_to_bela:
}
}
elseif (0 === strpos($pathinfo, '/api/courses')) {
// courses_list
if ('/api/courses' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\CoursesController::listCoursesAction', '_route' => 'courses_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_courses_list;
}
return $ret;
}
not_courses_list:
// course_schedule_list
if ('/api/courses/schedule' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\CoursesController::listCoursesScheduleAction', '_route' => 'course_schedule_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_course_schedule_list;
}
return $ret;
}
not_course_schedule_list:
}
// get_course
if (preg_match('#^/api/course/(?P<id>\\d+)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'get_course']), array ( '_controller' => 'AppBundle\\Controller\\CoursesController::getCourseAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_get_course;
}
return $ret;
}
not_get_course:
// add_course
if ('/api/course' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\CoursesController::addCourseAction', '_route' => 'add_course',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_add_course;
}
return $ret;
}
not_add_course:
// edit_course
if (preg_match('#^/api/course/(?P<id>\\d+)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'edit_course']), array ( '_controller' => 'AppBundle\\Controller\\CoursesController::editCourseAction',));
if (!in_array($requestMethod, ['PUT'])) {
$allow = array_merge($allow, ['PUT']);
goto not_edit_course;
}
return $ret;
}
not_edit_course:
// counts_courses_by_subjects
if ('/api/courses/counts' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\CoursesController::getCoursesCountsBySubjectsAction', '_route' => 'counts_courses_by_subjects',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_counts_courses_by_subjects;
}
return $ret;
}
not_counts_courses_by_subjects:
// delete_course
if (preg_match('#^/api/course/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'delete_course']), array ( '_controller' => 'AppBundle\\Controller\\CoursesController::removeCourseAction',));
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_delete_course;
}
return $ret;
}
not_delete_course:
if (0 === strpos($pathinfo, '/api/courses')) {
// import_courses_to_bela
if ('/api/courses/to/bela' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\CoursesController::importCoursesToBeLA', '_route' => 'import_courses_to_bela',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_import_courses_to_bela;
}
return $ret;
}
not_import_courses_to_bela:
// count_of_not_synced_courses
if ('/api/courses/not_synced' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\CoursesController::notSyncedCourses', '_route' => 'count_of_not_synced_courses',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_count_of_not_synced_courses;
}
return $ret;
}
not_count_of_not_synced_courses:
// curriculum_courses_status
if ('/api/courses/init_status' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\CoursesController::curriculumCoursesStatusAction', '_route' => 'curriculum_courses_status',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_curriculum_courses_status;
}
return $ret;
}
not_curriculum_courses_status:
// curriculum_courses_apply
if ('/api/courses/init_apply' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\CoursesController::curriculumCoursesApplyAction', '_route' => 'curriculum_courses_apply',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_curriculum_courses_apply;
}
return $ret;
}
not_curriculum_courses_apply:
}
}
// curriculum_is_cloning_allowed
if ('/api/curriculum/is_cloning_allowed' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\CurriculumController::isCloningAllowedAction', '_route' => 'curriculum_is_cloning_allowed',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_curriculum_is_cloning_allowed;
}
return $ret;
}
not_curriculum_is_cloning_allowed:
// curriculum_do_clone
if ('/api/curriculum/do_clone' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\CurriculumController::doCloneAction', '_route' => 'curriculum_do_clone',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_curriculum_do_clone;
}
return $ret;
}
not_curriculum_do_clone:
}
elseif (0 === strpos($pathinfo, '/api/xlsx')) {
if (0 === strpos($pathinfo, '/api/xlsx/c')) {
// export_clusters
if ('/api/xlsx/clusters' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\ClustersController::exportClustersAction', '_route' => 'export_clusters',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_export_clusters;
}
return $ret;
}
not_export_clusters:
// export_course_variants
if ('/api/xlsx/course/variants' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\CourseVariantsController::exportCoursesAction', '_route' => 'export_course_variants',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_export_course_variants;
}
return $ret;
}
not_export_course_variants:
// export_course
if ('/api/xlsx/courses' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\CoursesController::exportCoursesAction', '_route' => 'export_course',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_export_course;
}
return $ret;
}
not_export_course:
}
elseif (0 === strpos($pathinfo, '/api/xlsx/schoolcatalog')) {
// export_school_catalog_xls
if (preg_match('#^/api/xlsx/schoolcatalog/(?P<schoolId>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'export_school_catalog_xls']), array ( '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::exportSchoolCatalogXLSAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_export_school_catalog_xls;
}
return $ret;
}
not_export_school_catalog_xls:
// export_all_school_catalog_xls
if ('/api/xlsx/schoolcatalog' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::exportAllSchoolCatalogsXLSAction', '_route' => 'export_all_school_catalog_xls',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_export_all_school_catalog_xls;
}
return $ret;
}
not_export_all_school_catalog_xls:
}
// export_sequences_xls
if ('/api/xlsx/sequences' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SequencesController::exportSequencesToXls', '_route' => 'export_sequences_xls',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_export_sequences_xls;
}
return $ret;
}
not_export_sequences_xls:
}
elseif (0 === strpos($pathinfo, '/api/s')) {
// stats
if ('/api/stats' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\DefaultController::getStats', '_route' => 'stats',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_stats;
}
return $ret;
}
not_stats:
if (0 === strpos($pathinfo, '/api/school')) {
if (0 === strpos($pathinfo, '/api/schooladdoncatalog')) {
// get_school_addon_catalogs
if ('/api/schooladdoncatalogs' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SchoolAddonCatalogController::getSchoolAddonCatalogsInfoAction', '_route' => 'get_school_addon_catalogs',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_get_school_addon_catalogs;
}
return $ret;
}
not_get_school_addon_catalogs:
// get_school_addon_catalog
if (0 === strpos($pathinfo, '/api/schooladdoncatalog/school') && preg_match('#^/api/schooladdoncatalog/school/(?P<schoolId>\\d+)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'get_school_addon_catalog']), array ( '_controller' => 'AppBundle\\Controller\\SchoolAddonCatalogController::getSchoolAddonCatalogAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_get_school_addon_catalog;
}
return $ret;
}
not_get_school_addon_catalog:
// add_school_addon_catalog
if ('/api/schooladdoncatalog' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SchoolAddonCatalogController::addSchoolAddonCatalogAction', '_route' => 'add_school_addon_catalog',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_add_school_addon_catalog;
}
return $ret;
}
not_add_school_addon_catalog:
// edit_school_addon_catalog
if (preg_match('#^/api/schooladdoncatalog/(?P<id>\\d+)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'edit_school_addon_catalog']), array ( '_controller' => 'AppBundle\\Controller\\SchoolAddonCatalogController::editSchoolAddonCatalogAction',));
if (!in_array($requestMethod, ['PUT'])) {
$allow = array_merge($allow, ['PUT']);
goto not_edit_school_addon_catalog;
}
return $ret;
}
not_edit_school_addon_catalog:
// delete_school_addon_catalog
if (preg_match('#^/api/schooladdoncatalog/(?P<id>\\d+)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'delete_school_addon_catalog']), array ( '_controller' => 'AppBundle\\Controller\\SchoolAddonCatalogController::deleteSchoolAddonCatalogAction',));
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_delete_school_addon_catalog;
}
return $ret;
}
not_delete_school_addon_catalog:
// import_school_addon_catalog_to_bela
if (preg_match('#^/api/schooladdoncatalog/(?P<schoolId>[^/]++)/to/bela$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'import_school_addon_catalog_to_bela']), array ( '_controller' => 'AppBundle\\Controller\\SchoolAddonCatalogController::importSchoolAddonCatalogToBeLA',));
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_import_school_addon_catalog_to_bela;
}
return $ret;
}
not_import_school_addon_catalog_to_bela:
}
elseif (0 === strpos($pathinfo, '/api/schooladdons')) {
// counts_school_catalogs_by_addons
if ('/api/schooladdons/counts' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::getCountsSchoolCoursesByAddonsAction', '_route' => 'counts_school_catalogs_by_addons',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_counts_school_catalogs_by_addons;
}
return $ret;
}
not_counts_school_catalogs_by_addons:
// school_courses_by_addon
if ('/api/schooladdons' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::getSchoolCoursesByAddonAction', '_route' => 'school_courses_by_addon',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_school_courses_by_addon;
}
return $ret;
}
not_school_courses_by_addon:
}
elseif (0 === strpos($pathinfo, '/api/schoolcatalog')) {
// get_school_catalogs
if ('/api/schoolcatalogs' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::getSchoolCatalogsInfoAction', '_route' => 'get_school_catalogs',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_get_school_catalogs;
}
return $ret;
}
not_get_school_catalogs:
// get_school_catalog
if (0 === strpos($pathinfo, '/api/schoolcatalog/school') && preg_match('#^/api/schoolcatalog/school/(?P<schoolId>\\d+)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'get_school_catalog']), array ( '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::getSchoolCatalogAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_get_school_catalog;
}
return $ret;
}
not_get_school_catalog:
// get_all_school_catalogs
if ('/api/schoolcatalog' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::getAllSchoolCatalogsAction', '_route' => 'get_all_school_catalogs',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_get_all_school_catalogs;
}
return $ret;
}
not_get_all_school_catalogs:
// add_school_catalog
if ('/api/schoolcatalog' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::addSchoolCatalogAction', '_route' => 'add_school_catalog',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_add_school_catalog;
}
return $ret;
}
not_add_school_catalog:
// edit_school_catalog
if (preg_match('#^/api/schoolcatalog/(?P<id>\\d+)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'edit_school_catalog']), array ( '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::editSchoolCatalogAction',));
if (!in_array($requestMethod, ['PUT'])) {
$allow = array_merge($allow, ['PUT']);
goto not_edit_school_catalog;
}
return $ret;
}
not_edit_school_catalog:
// delete_school_catalog
if (preg_match('#^/api/schoolcatalog/(?P<id>\\d+)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'delete_school_catalog']), array ( '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::deleteSchoolCatalogAction',));
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_delete_school_catalog;
}
return $ret;
}
not_delete_school_catalog:
if (0 === strpos($pathinfo, '/api/schoolcatalog/generate')) {
// generate_school_catalog
if ('/api/schoolcatalog/generate' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::generateSchoolCatalog', '_route' => 'generate_school_catalog',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_generate_school_catalog;
}
return $ret;
}
not_generate_school_catalog:
// gen_stats_school_catalog
if ('/api/schoolcatalog/generate/stats' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::generateStatsSchoolCatalog', '_route' => 'gen_stats_school_catalog',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_gen_stats_school_catalog;
}
return $ret;
}
not_gen_stats_school_catalog:
}
// get_school_catalog_applied
if ('/api/schoolcatalog/applied' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::getAppliedSchoolCatalogAction', '_route' => 'get_school_catalog_applied',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_get_school_catalog_applied;
}
return $ret;
}
not_get_school_catalog_applied:
// edit_exemption
if (0 === strpos($pathinfo, '/api/schoolcatalog/exemption') && preg_match('#^/api/schoolcatalog/exemption/(?P<id>\\d+)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'edit_exemption']), array ( '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::editExemptionAction',));
if (!in_array($requestMethod, ['PUT'])) {
$allow = array_merge($allow, ['PUT']);
goto not_edit_exemption;
}
return $ret;
}
not_edit_exemption:
// import_school_catalog_to_bela
if (preg_match('#^/api/schoolcatalog/(?P<schoolId>[^/]++)/to/bela$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'import_school_catalog_to_bela']), array ( '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::importSchoolCatalogToBeLA',));
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_import_school_catalog_to_bela;
}
return $ret;
}
not_import_school_catalog_to_bela:
// import_bela_course_numbers_to_school_catalog
if ('/api/schoolcatalog/course/numbers' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::importBelaCourseNumbersToSchoolCatalog', '_route' => 'import_bela_course_numbers_to_school_catalog',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_import_bela_course_numbers_to_school_catalog;
}
return $ret;
}
not_import_bela_course_numbers_to_school_catalog:
}
elseif (0 === strpos($pathinfo, '/api/schoolcourses')) {
// counts_school_catalogs_by_course_variants
if ('/api/schoolcourses/counts' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::getCountsSchoolCoursesByCourseVariantsAction', '_route' => 'counts_school_catalogs_by_course_variants',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_counts_school_catalogs_by_course_variants;
}
return $ret;
}
not_counts_school_catalogs_by_course_variants:
// school_courses_by_course_variant
if ('/api/schoolcourses' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SchoolCatalogController::getSchoolCoursesByCourseVariantAction', '_route' => 'school_courses_by_course_variant',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_school_courses_by_course_variant;
}
return $ret;
}
not_school_courses_by_course_variant:
}
// activate_schoolyear
if ('/api/schoolyear/activate_new' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SchoolYearController::activateSchoolYearAction', '_route' => 'activate_schoolyear',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_activate_schoolyear;
}
return $ret;
}
not_activate_schoolyear:
// deactivate_schoolyear
if ('/api/schoolyear/deactivate' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SchoolYearController::deactivateSchoolYearAction', '_route' => 'deactivate_schoolyear',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_deactivate_schoolyear;
}
return $ret;
}
not_deactivate_schoolyear:
// schools_list
if ('/api/schools' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SchoolsController::listSchoolsAction', '_route' => 'schools_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_schools_list;
}
return $ret;
}
not_schools_list:
// school_info
if (preg_match('#^/api/school/(?P<id>\\d+)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'school_info']), array ( '_controller' => 'AppBundle\\Controller\\SchoolsController::getSchoolInfoAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_school_info;
}
return $ret;
}
not_school_info:
// schools_list_ordering
if ('/api/schools/ordering' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SchoolsController::updateSchoolOrdering', '_route' => 'schools_list_ordering',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_schools_list_ordering;
}
return $ret;
}
not_schools_list_ordering:
// add_school
if ('/api/school' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SchoolsController::addSchoolAction', '_route' => 'add_school',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_add_school;
}
return $ret;
}
not_add_school:
// edit_school
if (preg_match('#^/api/school/(?P<id>\\d+)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'edit_school']), array ( '_controller' => 'AppBundle\\Controller\\SchoolsController::editSchoolGradesAction',));
if (!in_array($requestMethod, ['PUT'])) {
$allow = array_merge($allow, ['PUT']);
goto not_edit_school;
}
return $ret;
}
not_edit_school:
if (0 === strpos($pathinfo, '/api/schools')) {
// schools_list_with_graduation
if ('/api/schools/with/graduation' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SchoolsController::listSchoolsWithGraduationAction', '_route' => 'schools_list_with_graduation',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_schools_list_with_graduation;
}
return $ret;
}
not_schools_list_with_graduation:
// schools_list_with_exports
if ('/api/schools/exports' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SchoolsController::listSchoolsExportsAction', '_route' => 'schools_list_with_exports',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_schools_list_with_exports;
}
return $ret;
}
not_schools_list_with_exports:
// set_pdf_link_state
if ('/api/schools/pdflinkstate' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SchoolsController::setPdfLinkStateForSchoolsAction', '_route' => 'set_pdf_link_state',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_set_pdf_link_state;
}
return $ret;
}
not_set_pdf_link_state:
// update_bela_active_year_and_grades
if ('/api/schools/grades' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SchoolsController::updateBelaActiveYearAndGrades', '_route' => 'update_bela_active_year_and_grades',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_update_bela_active_year_and_grades;
}
return $ret;
}
not_update_bela_active_year_and_grades:
// get_schools_init_state
if ('/api/schools/init/state' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SchoolsController::getSchoolsInitStatus', '_route' => 'get_schools_init_state',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_get_schools_init_state;
}
return $ret;
}
not_get_schools_init_state:
// get_schools_with_not_synced_catalogs
if ('/api/schools/not/synced/catalogs' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SchoolsController::getSchoolsWithNotSyncedCatalogs', '_route' => 'get_schools_with_not_synced_catalogs',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_get_schools_with_not_synced_catalogs;
}
return $ret;
}
not_get_schools_with_not_synced_catalogs:
}
}
// sporklogin
if ('/api/sporklogin' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SecurityController::sporkLoginAction', '_route' => 'sporklogin',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_sporklogin;
}
return $ret;
}
not_sporklogin:
// selectivities_list
if ('/api/selectivities' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SelectivitiesController::listSelectivitiesAction', '_route' => 'selectivities_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_selectivities_list;
}
return $ret;
}
not_selectivities_list:
if (0 === strpos($pathinfo, '/api/sequences')) {
// get_sequences
if ('/api/sequences' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SequencesController::getSequenceAction', '_route' => 'get_sequences',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_get_sequences;
}
return $ret;
}
not_get_sequences:
// add_sequence
if ('/api/sequences' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SequencesController::addSequenceAction', '_route' => 'add_sequence',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_add_sequence;
}
return $ret;
}
not_add_sequence:
// delete_sequence
if ('/api/sequences' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SequencesController::deleteSequenceAction', '_route' => 'delete_sequence',);
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_delete_sequence;
}
return $ret;
}
not_delete_sequence:
// update_sequence
if (preg_match('#^/api/sequences/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'update_sequence']), array ( '_controller' => 'AppBundle\\Controller\\SequencesController::updateSequenceAction',));
if (!in_array($requestMethod, ['PUT'])) {
$allow = array_merge($allow, ['PUT']);
goto not_update_sequence;
}
return $ret;
}
not_update_sequence:
// update_sequences_ordering
if ('/api/sequences/ordering' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SequencesController::updateSequencesOrderingAction', '_route' => 'update_sequences_ordering',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_update_sequences_ordering;
}
return $ret;
}
not_update_sequences_ordering:
// get_sequences_by_courses
if ('/api/sequences/courses' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SequencesController::getSequencesByCoursesAction', '_route' => 'get_sequences_by_courses',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_get_sequences_by_courses;
}
return $ret;
}
not_get_sequences_by_courses:
// export_sequences_courses
if ('/api/sequences/courselist' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SequencesController::exportSequencesApi', '_route' => 'export_sequences_courses',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_export_sequences_courses;
}
return $ret;
}
not_export_sequences_courses:
// upload_sequence_cmap
if ('/api/sequences/upload_cmap' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SequencesController::uploadCurriculumMapAction', '_route' => 'upload_sequence_cmap',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_upload_sequence_cmap;
}
return $ret;
}
not_upload_sequence_cmap:
// remove_sequence_cmap
if ('/api/sequences/remove_cmap' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SequencesController::removeCurriculumMapAction', '_route' => 'remove_sequence_cmap',);
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_remove_sequence_cmap;
}
return $ret;
}
not_remove_sequence_cmap:
// get_sequence_cmap
if ('/api/sequences/get_cmap' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SequencesController::downloadCurriculumMapAction', '_route' => 'get_sequence_cmap',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_get_sequence_cmap;
}
return $ret;
}
not_get_sequence_cmap:
}
elseif (0 === strpos($pathinfo, '/api/subject')) {
// subjects_list
if ('/api/subjects' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SubjectsController::listSubjectsAction', '_route' => 'subjects_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_subjects_list;
}
return $ret;
}
not_subjects_list:
// add_subject
if ('/api/subject' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SubjectsController::addSubjectAction', '_route' => 'add_subject',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_add_subject;
}
return $ret;
}
not_add_subject:
// edit_subject
if (preg_match('#^/api/subject/(?P<id>\\d+)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'edit_subject']), array ( '_controller' => 'AppBundle\\Controller\\SubjectsController::editSubjectAction',));
if (!in_array($requestMethod, ['PUT'])) {
$allow = array_merge($allow, ['PUT']);
goto not_edit_subject;
}
return $ret;
}
not_edit_subject:
}
}
// get_bela_url
if ('/api/belaurl' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\DefaultController::getBeLAUrl', '_route' => 'get_bela_url',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_get_bela_url;
}
return $ret;
}
not_get_bela_url:
if (0 === strpos($pathinfo, '/api/d')) {
// diplomas_list
if ('/api/diplomas' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\DiplomasController::listDiplomasAction', '_route' => 'diplomas_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_diplomas_list;
}
return $ret;
}
not_diplomas_list:
if (0 === strpos($pathinfo, '/api/discipline')) {
// disciplines_list
if ('/api/disciplines' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\DisciplinesController::listDisciplinesAction', '_route' => 'disciplines_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_disciplines_list;
}
return $ret;
}
not_disciplines_list:
// add_discipline
if ('/api/discipline' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\DisciplinesController::addDisciplineAction', '_route' => 'add_discipline',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_add_discipline;
}
return $ret;
}
not_add_discipline:
// update_discipline
if (preg_match('#^/api/discipline/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'update_discipline']), array ( '_controller' => 'AppBundle\\Controller\\DisciplinesController::updateDisciplineAction',));
if (!in_array($requestMethod, ['PUT'])) {
$allow = array_merge($allow, ['PUT']);
goto not_update_discipline;
}
return $ret;
}
not_update_discipline:
// remove_discipline
if (preg_match('#^/api/discipline/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'remove_discipline']), array ( '_controller' => 'AppBundle\\Controller\\DisciplinesController::removeDisciplineAction',));
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_remove_discipline;
}
return $ret;
}
not_remove_discipline:
// restore_discipline
if (0 === strpos($pathinfo, '/api/discipline/restore') && preg_match('#^/api/discipline/restore/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'restore_discipline']), array ( '_controller' => 'AppBundle\\Controller\\DisciplinesController::restoreDisciplineAction',));
if (!in_array($requestMethod, ['PATCH'])) {
$allow = array_merge($allow, ['PATCH']);
goto not_restore_discipline;
}
return $ret;
}
not_restore_discipline:
}
// nelmio_api_doc_index
if (0 === strpos($pathinfo, '/api/doc') && preg_match('#^/api/doc(?:/(?P<view>[^/]++))?$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'nelmio_api_doc_index']), array ( '_controller' => 'Nelmio\\ApiDocBundle\\Controller\\ApiDocController::indexAction', 'view' => 'default',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_nelmio_api_doc_index;
}
return $ret;
}
not_nelmio_api_doc_index:
}
// focuses_list
if ('/api/focuses' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\FocusesController::listFocusesAction', '_route' => 'focuses_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_focuses_list;
}
return $ret;
}
not_focuses_list:
if (0 === strpos($pathinfo, '/api/grad')) {
if (0 === strpos($pathinfo, '/api/gradepromotion')) {
// grade_promotions_list
if ('/api/gradepromotions' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\GradePromotionsController::listGradePromotionsAction', '_route' => 'grade_promotions_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_grade_promotions_list;
}
return $ret;
}
not_grade_promotions_list:
// grade_promotion_get
if (preg_match('#^/api/gradepromotion/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'grade_promotion_get']), array ( '_controller' => 'AppBundle\\Controller\\GradePromotionsController::getGradePromotionAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_grade_promotion_get;
}
return $ret;
}
not_grade_promotion_get:
// add_gradepromotion
if ('/api/gradepromotion' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\GradePromotionsController::addGradePromotionAction', '_route' => 'add_gradepromotion',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_add_gradepromotion;
}
return $ret;
}
not_add_gradepromotion:
// edit_gradepromotion
if (preg_match('#^/api/gradepromotion/(?P<id>\\d+)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'edit_gradepromotion']), array ( '_controller' => 'AppBundle\\Controller\\GradePromotionsController::editGradePromotionAction',));
if (!in_array($requestMethod, ['PUT'])) {
$allow = array_merge($allow, ['PUT']);
goto not_edit_gradepromotion;
}
return $ret;
}
not_edit_gradepromotion:
// delete_gradepromotion
if (preg_match('#^/api/gradepromotion/(?P<id>\\d+)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'delete_gradepromotion']), array ( '_controller' => 'AppBundle\\Controller\\GradePromotionsController::deleteGradePromotionAction',));
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_delete_gradepromotion;
}
return $ret;
}
not_delete_gradepromotion:
}
elseif (0 === strpos($pathinfo, '/api/grades')) {
// grades_list
if ('/api/grades' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\GradesController::listGradeDefinitionsAction', '_route' => 'grades_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_grades_list;
}
return $ret;
}
not_grades_list:
// school_grades_list
if ('/api/grades/school' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\GradesController::listSchoolGradesAction', '_route' => 'school_grades_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_school_grades_list;
}
return $ret;
}
not_school_grades_list:
}
elseif (0 === strpos($pathinfo, '/api/graduationrequirement')) {
// graduation_years_list
if ('/api/graduationrequirement/years' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\GraduationRequirementsController::listGradYearsAction', '_route' => 'graduation_years_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_graduation_years_list;
}
return $ret;
}
not_graduation_years_list:
// graduation_requirements_list
if ('/api/graduationrequirements' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\GraduationRequirementsController::listGradRequirementsAction', '_route' => 'graduation_requirements_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_graduation_requirements_list;
}
return $ret;
}
not_graduation_requirements_list:
// graduation_requirement_get
if (preg_match('#^/api/graduationrequirement/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'graduation_requirement_get']), array ( '_controller' => 'AppBundle\\Controller\\GraduationRequirementsController::getGraduationRequirementAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_graduation_requirement_get;
}
return $ret;
}
not_graduation_requirement_get:
// graduation_requirement_add
if ('/api/graduationrequirement' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\GraduationRequirementsController::addGraduationRequirementAction', '_route' => 'graduation_requirement_add',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_graduation_requirement_add;
}
return $ret;
}
not_graduation_requirement_add:
// graduation_requirement_edit
if (preg_match('#^/api/graduationrequirement/(?P<id>\\d+)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'graduation_requirement_edit']), array ( '_controller' => 'AppBundle\\Controller\\GraduationRequirementsController::editGraduationRequirementAction',));
if (!in_array($requestMethod, ['PUT'])) {
$allow = array_merge($allow, ['PUT']);
goto not_graduation_requirement_edit;
}
return $ret;
}
not_graduation_requirement_edit:
// graduation_requirement_delete
if (preg_match('#^/api/graduationrequirement/(?P<id>\\d+)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'graduation_requirement_delete']), array ( '_controller' => 'AppBundle\\Controller\\GraduationRequirementsController::deleteGraduationRequirementAction',));
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_graduation_requirement_delete;
}
return $ret;
}
not_graduation_requirement_delete:
if (0 === strpos($pathinfo, '/api/graduationrequirements')) {
// get_graduation_requirement_diplomas
if ('/api/graduationrequirements/diplomas' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\GraduationRequirementsController::getGraduationRequirementDiplomasAction', '_route' => 'get_graduation_requirement_diplomas',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_get_graduation_requirement_diplomas;
}
return $ret;
}
not_get_graduation_requirement_diplomas:
// list_graduation_requirements_for_school
if (0 === strpos($pathinfo, '/api/graduationrequirements/school') && preg_match('#^/api/graduationrequirements/school/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'list_graduation_requirements_for_school']), array ( '_controller' => 'AppBundle\\Controller\\GraduationRequirementsController::listGradRequirementsForSchoolAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_list_graduation_requirements_for_school;
}
return $ret;
}
not_list_graduation_requirements_for_school:
// get_graduation_requirement_external_diplomas
if ('/api/graduationrequirements/external/diplomas' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\GraduationRequirementsController::getGraduationRequirementExternalDiplomasAction', '_route' => 'get_graduation_requirement_external_diplomas',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_get_graduation_requirement_external_diplomas;
}
return $ret;
}
not_get_graduation_requirement_external_diplomas:
// get_graduation_requirement_recipe
if ('/api/graduationrequirements/recipe' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\GraduationRequirementsController::getGraduationRequirementAsJSON', '_route' => 'get_graduation_requirement_recipe',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_get_graduation_requirement_recipe;
}
return $ret;
}
not_get_graduation_requirement_recipe:
}
// diploma_list_ordering
if ('/api/graduationrequirement/ordering' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\GraduationRequirementsController::updateDiplomaOrdering', '_route' => 'diploma_list_ordering',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_diploma_list_ordering;
}
return $ret;
}
not_diploma_list_ordering:
}
}
// intensities_list
if ('/api/intensities' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\IntensitiesController::listIntensitiesAction', '_route' => 'intensities_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_intensities_list;
}
return $ret;
}
not_intensities_list:
if (0 === strpos($pathinfo, '/api/l')) {
// year_list
if ('/api/l/y' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\ListController::listYearsAction', '_route' => 'year_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_year_list;
}
return $ret;
}
not_year_list:
// list_active_users
if ('/api/list/active/users' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\ListController::listActiveUsers', '_route' => 'list_active_users',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_list_active_users;
}
return $ret;
}
not_list_active_users:
// login
if ('/api/login' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SecurityController::loginAction', '_route' => 'login',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_login;
}
return $ret;
}
not_login:
// logout
if ('/api/logout' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SecurityController::logoutAction', '_route' => 'logout',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_logout;
}
return $ret;
}
not_logout:
}
elseif (0 === strpos($pathinfo, '/api/metacourses')) {
// meta_courses_list
if ('/api/metacourses' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\MetaCoursesController::listMetaCoursesAction', '_route' => 'meta_courses_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_meta_courses_list;
}
return $ret;
}
not_meta_courses_list:
// used_meta_courses_list
if ('/api/metacourses/used' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\MetaCoursesController::listUsedMetaCoursesAction', '_route' => 'used_meta_courses_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_used_meta_courses_list;
}
return $ret;
}
not_used_meta_courses_list:
if (0 === strpos($pathinfo, '/api/metacourses/credits')) {
// meta_courses_list_withcredits
if ('/api/metacourses/credits' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\MetaCoursesController::listMetaCoursesWithCreditsAction', '_route' => 'meta_courses_list_withcredits',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_meta_courses_list_withcredits;
}
return $ret;
}
not_meta_courses_list_withcredits:
// update_meta_course_credits
if (preg_match('#^/api/metacourses/credits/(?P<id>\\d+)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'update_meta_course_credits']), array ( '_controller' => 'AppBundle\\Controller\\MetaCoursesController::editMetaCourseCreditsAction',));
if (!in_array($requestMethod, ['PUT'])) {
$allow = array_merge($allow, ['PUT']);
goto not_update_meta_course_credits;
}
return $ret;
}
not_update_meta_course_credits:
}
// add_meta_course
if ('/api/metacourses' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\MetaCoursesController::addMetaCourseAction', '_route' => 'add_meta_course',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_add_meta_course;
}
return $ret;
}
not_add_meta_course:
// update_meta_course
if (preg_match('#^/api/metacourses/(?P<id>\\d+)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'update_meta_course']), array ( '_controller' => 'AppBundle\\Controller\\MetaCoursesController::updateMetaCourseAction',));
if (!in_array($requestMethod, ['PUT'])) {
$allow = array_merge($allow, ['PUT']);
goto not_update_meta_course;
}
return $ret;
}
not_update_meta_course:
// clean_unused_meta_courses
if ('/api/metacourses/cleanunused' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\MetaCoursesController::cleanUnusedMetaCoursesAction', '_route' => 'clean_unused_meta_courses',);
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_clean_unused_meta_courses;
}
return $ret;
}
not_clean_unused_meta_courses:
// unused_count_meta_courses
if ('/api/metacourses/unusedcount' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\MetaCoursesController::getUnusedCountMetaCoursesAction', '_route' => 'unused_count_meta_courses',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_unused_count_meta_courses;
}
return $ret;
}
not_unused_count_meta_courses:
// set_meta_course_validity
if (0 === strpos($pathinfo, '/api/metacourses/validity') && preg_match('#^/api/metacourses/validity/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'set_meta_course_validity']), array ( '_controller' => 'AppBundle\\Controller\\MetaCoursesController::setMetaCourseValidityAction',));
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_set_meta_course_validity;
}
return $ret;
}
not_set_meta_course_validity:
// set_meta_course_name
if (0 === strpos($pathinfo, '/api/metacourses/rename') && preg_match('#^/api/metacourses/rename/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'set_meta_course_name']), array ( '_controller' => 'AppBundle\\Controller\\MetaCoursesController::setMetaCourseNameAction',));
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_set_meta_course_name;
}
return $ret;
}
not_set_meta_course_name:
}
elseif (0 === strpos($pathinfo, '/api/p')) {
if (0 === strpos($pathinfo, '/api/pdf')) {
// export_school_catalog
if (0 === strpos($pathinfo, '/api/pdf/school/catalog') && preg_match('#^/api/pdf/school/catalog/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'export_school_catalog']), array ( '_controller' => 'AppBundle\\Controller\\PdfExportController::exportSchoolCatalog',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_export_school_catalog;
}
return $ret;
}
not_export_school_catalog:
// generate_all_pdf_exports
if ('/api/pdf/exports' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\PdfExportController::generatePdfExports', '_route' => 'generate_all_pdf_exports',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_generate_all_pdf_exports;
}
return $ret;
}
not_generate_all_pdf_exports:
if (0 === strpos($pathinfo, '/api/pdf/graduationrequirement')) {
// export_graduation_requirement_for_school
if (0 === strpos($pathinfo, '/api/pdf/graduationrequirement/school') && preg_match('#^/api/pdf/graduationrequirement/school/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'export_graduation_requirement_for_school']), array ( '_controller' => 'AppBundle\\Controller\\PdfExportController::exportGraduationRequirementForSchool',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_export_graduation_requirement_for_school;
}
return $ret;
}
not_export_graduation_requirement_for_school:
// export_graduation_requirement
if (preg_match('#^/api/pdf/graduationrequirement/(?P<id>\\d+)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'export_graduation_requirement']), array ( '_controller' => 'AppBundle\\Controller\\PdfExportController::exportGraduationRequirement',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_export_graduation_requirement;
}
return $ret;
}
not_export_graduation_requirement:
}
elseif (0 === strpos($pathinfo, '/api/pdf/gradepromotion')) {
// export_grade_promotion_for_school
if (0 === strpos($pathinfo, '/api/pdf/gradepromotion/school') && preg_match('#^/api/pdf/gradepromotion/school/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'export_grade_promotion_for_school']), array ( '_controller' => 'AppBundle\\Controller\\PdfExportController::exportGradePromotionForSchool',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_export_grade_promotion_for_school;
}
return $ret;
}
not_export_grade_promotion_for_school:
// export_grade_promotion_for_d4
if (preg_match('#^/api/pdf/gradepromotion/(?P<id>[^/]++)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'export_grade_promotion_for_d4']), array ( '_controller' => 'AppBundle\\Controller\\PdfExportController::exportGradePromotionForD4',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_export_grade_promotion_for_d4;
}
return $ret;
}
not_export_grade_promotion_for_d4:
}
// export_clusters_to_pdf
if ('/api/pdf/clusters' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\PdfExportController::exportClustersToPdf', '_route' => 'export_clusters_to_pdf',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_export_clusters_to_pdf;
}
return $ret;
}
not_export_clusters_to_pdf:
}
// place_type_list
if ('/api/placetypes' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\PlaceTypesController::getPlaceTypesAction', '_route' => 'place_type_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_place_type_list;
}
return $ret;
}
not_place_type_list:
if (0 === strpos($pathinfo, '/api/programs')) {
// programs_list
if ('/api/programs' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\ProgramsController::listProgramsAction', '_route' => 'programs_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_programs_list;
}
return $ret;
}
not_programs_list:
// active_programs_list
if ('/api/programs/active' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\ProgramsController::listProgramsForRegulatorAndGradeAction', '_route' => 'active_programs_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_active_programs_list;
}
return $ret;
}
not_active_programs_list:
// programs_for_regulator
if (0 === strpos($pathinfo, '/api/programs/regulator') && preg_match('#^/api/programs/regulator/(?P<id>\\d+)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'programs_for_regulator']), array ( '_controller' => 'AppBundle\\Controller\\ProgramsController::listProgramsForRegulatorAction',));
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_programs_for_regulator;
}
return $ret;
}
not_programs_for_regulator:
}
}
elseif (0 === strpos($pathinfo, '/api/region')) {
// regions_list
if ('/api/regions' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\RegionsController::listRegionsAction', '_route' => 'regions_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_regions_list;
}
return $ret;
}
not_regions_list:
// add_region
if ('/api/region' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\RegionsController::addRegionAction', '_route' => 'add_region',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_add_region;
}
return $ret;
}
not_add_region:
}
elseif (0 === strpos($pathinfo, '/api/regulator')) {
// regulators_list
if ('/api/regulators' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\RegulatorsController::listRegulatorsAction', '_route' => 'regulators_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_regulators_list;
}
return $ret;
}
not_regulators_list:
// add_regulator
if ('/api/regulator' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\RegulatorsController::addRegulatorAction', '_route' => 'add_regulator',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_add_regulator;
}
return $ret;
}
not_add_regulator:
// edit_regulator
if (preg_match('#^/api/regulator/(?P<id>\\d+)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'edit_regulator']), array ( '_controller' => 'AppBundle\\Controller\\RegulatorsController::updateRegulatorAction',));
if (!in_array($requestMethod, ['PUT'])) {
$allow = array_merge($allow, ['PUT']);
goto not_edit_regulator;
}
return $ret;
}
not_edit_regulator:
// disable_regulator
if (preg_match('#^/api/regulator/(?P<id>\\d+)$#sD', $pathinfo, $matches)) {
$ret = $this->mergeDefaults(array_replace($matches, ['_route' => 'disable_regulator']), array ( '_controller' => 'AppBundle\\Controller\\RegulatorsController::disableRegulatorAction',));
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_disable_regulator;
}
return $ret;
}
not_disable_regulator:
}
// whoami
if ('/api/whoami' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\SecurityController::whoAmIAction', '_route' => 'whoami',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_whoami;
}
return $ret;
}
not_whoami:
// term_types_list
if ('/api/termtypes' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\TermTypesController::listTermTypesAction', '_route' => 'term_types_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_term_types_list;
}
return $ret;
}
not_term_types_list:
if (0 === strpos($pathinfo, '/api/users/admins')) {
// admins_list
if ('/api/users/admins' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\UserAdminController::listUserAdminAction', '_route' => 'admins_list',);
if (!in_array($canonicalMethod, ['GET'])) {
$allow = array_merge($allow, ['GET']);
goto not_admins_list;
}
return $ret;
}
not_admins_list:
// add_admin
if ('/api/users/admins' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\UserAdminController::addUserAdminAction', '_route' => 'add_admin',);
if (!in_array($requestMethod, ['POST'])) {
$allow = array_merge($allow, ['POST']);
goto not_add_admin;
}
return $ret;
}
not_add_admin:
// remove_admin
if ('/api/users/admins' === $pathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\UserAdminController::removeUserAdminAction', '_route' => 'remove_admin',);
if (!in_array($requestMethod, ['DELETE'])) {
$allow = array_merge($allow, ['DELETE']);
goto not_remove_admin;
}
return $ret;
}
not_remove_admin:
}
}
elseif (0 === strpos($pathinfo, '/app')) {
// app_default_app
if ('/app' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\DefaultController::appAction', '_route' => 'app_default_app',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_app_default_app;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'app_default_app'));
}
return $ret;
}
not_app_default_app:
// app_frontend
if (preg_match('#^/app(?:/(?P<routing>.+))?$#sD', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, ['_route' => 'app_frontend']), array ( 'routing' => 1, '_controller' => 'AppBundle\\Controller\\DefaultController::appAction',));
}
}
// index
if ('' === $trimmedPathinfo) {
$ret = array ( '_controller' => 'AppBundle\\Controller\\DefaultController::indexAction', '_route' => 'index',);
if ('/' === substr($pathinfo, -1)) {
// no-op
} elseif ('GET' !== $canonicalMethod) {
goto not_index;
} else {
return array_replace($ret, $this->redirect($rawPathinfo.'/', 'index'));
}
return $ret;
}
not_index:
if ('/' === $pathinfo && !$allow) {
throw new Symfony\Component\Routing\Exception\NoConfigurationException();
}
throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
}
}