var/cache/dev/appDevDebugProjectContainerUrlMatcher.php line 863

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 = array();
  18.         $pathinfo rawurldecode($rawPathinfo);
  19.         $trimmedPathinfo rtrim($pathinfo'/');
  20.         $context $this->context;
  21.         $request $this->request;
  22.         $requestMethod $canonicalMethod $context->getMethod();
  23.         $scheme $context->getScheme();
  24.         if ('HEAD' === $requestMethod) {
  25.             $canonicalMethod 'GET';
  26.         }
  27.         if (=== strpos($pathinfo'/_')) {
  28.             // _wdt
  29.             if (=== strpos($pathinfo'/_wdt') && preg_match('#^/_wdt/(?P<token>[^/]++)$#s'$pathinfo$matches)) {
  30.                 return $this->mergeDefaults(array_replace($matches, array('_route' => '_wdt')), array (  '_controller' => 'web_profiler.controller.profiler:toolbarAction',));
  31.             }
  32.             if (=== strpos($pathinfo'/_profiler')) {
  33.                 // _profiler_home
  34.                 if ('/_profiler' === $trimmedPathinfo) {
  35.                     if (substr($pathinfo, -1) !== '/') {
  36.                         return $this->redirect($rawPathinfo.'/''_profiler_home');
  37.                     }
  38.                     return array (  '_controller' => 'web_profiler.controller.profiler:homeAction',  '_route' => '_profiler_home',);
  39.                 }
  40.                 if (=== strpos($pathinfo'/_profiler/search')) {
  41.                     // _profiler_search
  42.                     if ('/_profiler/search' === $pathinfo) {
  43.                         return array (  '_controller' => 'web_profiler.controller.profiler:searchAction',  '_route' => '_profiler_search',);
  44.                     }
  45.                     // _profiler_search_bar
  46.                     if ('/_profiler/search_bar' === $pathinfo) {
  47.                         return array (  '_controller' => 'web_profiler.controller.profiler:searchBarAction',  '_route' => '_profiler_search_bar',);
  48.                     }
  49.                 }
  50.                 // _profiler_phpinfo
  51.                 if ('/_profiler/phpinfo' === $pathinfo) {
  52.                     return array (  '_controller' => 'web_profiler.controller.profiler:phpinfoAction',  '_route' => '_profiler_phpinfo',);
  53.                 }
  54.                 // _profiler_search_results
  55.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/search/results$#s'$pathinfo$matches)) {
  56.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_search_results')), array (  '_controller' => 'web_profiler.controller.profiler:searchResultsAction',));
  57.                 }
  58.                 // _profiler_open_file
  59.                 if ('/_profiler/open' === $pathinfo) {
  60.                     return array (  '_controller' => 'web_profiler.controller.profiler:openAction',  '_route' => '_profiler_open_file',);
  61.                 }
  62.                 // _profiler
  63.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)$#s'$pathinfo$matches)) {
  64.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler')), array (  '_controller' => 'web_profiler.controller.profiler:panelAction',));
  65.                 }
  66.                 // _profiler_router
  67.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/router$#s'$pathinfo$matches)) {
  68.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_router')), array (  '_controller' => 'web_profiler.controller.router:panelAction',));
  69.                 }
  70.                 // _profiler_exception
  71.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception$#s'$pathinfo$matches)) {
  72.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_exception')), array (  '_controller' => 'web_profiler.controller.exception:showAction',));
  73.                 }
  74.                 // _profiler_exception_css
  75.                 if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception\\.css$#s'$pathinfo$matches)) {
  76.                     return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_exception_css')), array (  '_controller' => 'web_profiler.controller.exception:cssAction',));
  77.                 }
  78.             }
  79.             // _twig_error_test
  80.             if (=== strpos($pathinfo'/_error') && preg_match('#^/_error/(?P<code>\\d+)(?:\\.(?P<_format>[^/]++))?$#s'$pathinfo$matches)) {
  81.                 return $this->mergeDefaults(array_replace($matches, array('_route' => '_twig_error_test')), array (  '_controller' => 'twig.controller.preview_error:previewErrorPageAction',  '_format' => 'html',));
  82.             }
  83.         }
  84.         elseif (=== strpos($pathinfo'/admin')) {
  85.             // calendar
  86.             if (=== strpos($pathinfo'/admin/calendar') && preg_match('#^/admin/calendar/(?P<id>\\d+)$#s'$pathinfo$matches)) {
  87.                 return $this->mergeDefaults(array_replace($matches, array('_route' => 'calendar')), array (  '_controller' => 'APIBundle\\Controller\\CalendarController::indexAction',));
  88.             }
  89.             if (=== strpos($pathinfo'/admin/city')) {
  90.                 // admin_city
  91.                 if ('/admin/city' === $trimmedPathinfo) {
  92.                     if ('GET' !== $canonicalMethod) {
  93.                         $allow[] = 'GET';
  94.                         goto not_admin_city;
  95.                     }
  96.                     if (substr($pathinfo, -1) !== '/') {
  97.                         return $this->redirect($rawPathinfo.'/''admin_city');
  98.                     }
  99.                     return array (  '_controller' => 'AdminBundle\\Controller\\CityController::indexAction',  '_route' => 'admin_city',);
  100.                 }
  101.                 not_admin_city:
  102.                 // admin_city_new
  103.                 if ('/admin/city/new' === $pathinfo) {
  104.                     if (!in_array($canonicalMethod, array('GET''POST'))) {
  105.                         $allow array_merge($allow, array('GET''POST'));
  106.                         goto not_admin_city_new;
  107.                     }
  108.                     return array (  '_controller' => 'AdminBundle\\Controller\\CityController::newAction',  '_route' => 'admin_city_new',);
  109.                 }
  110.                 not_admin_city_new:
  111.                 // admin_city_show
  112.                 if (preg_match('#^/admin/city/(?P<id>[^/]++)$#s'$pathinfo$matches)) {
  113.                     if ('GET' !== $canonicalMethod) {
  114.                         $allow[] = 'GET';
  115.                         goto not_admin_city_show;
  116.                     }
  117.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'admin_city_show')), array (  '_controller' => 'AdminBundle\\Controller\\CityController::showAction',));
  118.                 }
  119.                 not_admin_city_show:
  120.                 // admin_city_edit
  121.                 if (preg_match('#^/admin/city/(?P<id>[^/]++)/edit$#s'$pathinfo$matches)) {
  122.                     if (!in_array($canonicalMethod, array('GET''POST'))) {
  123.                         $allow array_merge($allow, array('GET''POST'));
  124.                         goto not_admin_city_edit;
  125.                     }
  126.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'admin_city_edit')), array (  '_controller' => 'AdminBundle\\Controller\\CityController::editAction',));
  127.                 }
  128.                 not_admin_city_edit:
  129.                 // admin_city_delete
  130.                 if (preg_match('#^/admin/city/(?P<id>[^/]++)$#s'$pathinfo$matches)) {
  131.                     if ('DELETE' !== $canonicalMethod) {
  132.                         $allow[] = 'DELETE';
  133.                         goto not_admin_city_delete;
  134.                     }
  135.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'admin_city_delete')), array (  '_controller' => 'AdminBundle\\Controller\\CityController::deleteAction',));
  136.                 }
  137.                 not_admin_city_delete:
  138.                 // admin_city_by_id_delete
  139.                 if (=== strpos($pathinfo'/admin/city/delete') && preg_match('#^/admin/city/delete/(?P<id>[^/]++)$#s'$pathinfo$matches)) {
  140.                     if ('GET' !== $canonicalMethod) {
  141.                         $allow[] = 'GET';
  142.                         goto not_admin_city_by_id_delete;
  143.                     }
  144.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'admin_city_by_id_delete')), array (  '_controller' => 'AdminBundle\\Controller\\CityController::deleteByIdAction',));
  145.                 }
  146.                 not_admin_city_by_id_delete:
  147.                 // admin_city_bulk_action
  148.                 if ('/admin/city/bulk-action/' === $pathinfo) {
  149.                     if ('POST' !== $canonicalMethod) {
  150.                         $allow[] = 'POST';
  151.                         goto not_admin_city_bulk_action;
  152.                     }
  153.                     return array (  '_controller' => 'AdminBundle\\Controller\\CityController::bulkAction',  '_route' => 'admin_city_bulk_action',);
  154.                 }
  155.                 not_admin_city_bulk_action:
  156.             }
  157.             // department
  158.             if (=== strpos($pathinfo'/admin/department') && preg_match('#^/admin/department/(?P<id>\\d+)$#s'$pathinfo$matches)) {
  159.                 return $this->mergeDefaults(array_replace($matches, array('_route' => 'department')), array (  '_controller' => 'APIBundle\\Controller\\DepartmentController::indexAction',));
  160.             }
  161.             if (=== strpos($pathinfo'/admin/devis')) {
  162.                 // devis_manage
  163.                 if ('/admin/devis' === $trimmedPathinfo) {
  164.                     if ('GET' !== $canonicalMethod) {
  165.                         $allow[] = 'GET';
  166.                         goto not_devis_manage;
  167.                     }
  168.                     if (substr($pathinfo, -1) !== '/') {
  169.                         return $this->redirect($rawPathinfo.'/''devis_manage');
  170.                     }
  171.                     return array (  '_controller' => 'AdminBundle\\Controller\\DevisController::indexAction',  '_route' => 'devis_manage',);
  172.                 }
  173.                 not_devis_manage:
  174.                 // bypass_relance
  175.                 if (=== strpos($pathinfo'/admin/devis/bypass_relance') && preg_match('#^/admin/devis/bypass_relance/(?P<id>[^/]++)/(?P<checkbox>[^/]++)$#s'$pathinfo$matches)) {
  176.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'bypass_relance')), array (  '_controller' => 'AdminBundle\\Controller\\DevisController::Bypassrelance',));
  177.                 }
  178.                 // devis_show
  179.                 if (preg_match('#^/admin/devis/(?P<id>[^/]++)$#s'$pathinfo$matches)) {
  180.                     if ('GET' !== $canonicalMethod) {
  181.                         $allow[] = 'GET';
  182.                         goto not_devis_show;
  183.                     }
  184.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'devis_show')), array (  '_controller' => 'AdminBundle\\Controller\\DevisController::showAction',));
  185.                 }
  186.                 not_devis_show:
  187.                 // devis_edit
  188.                 if (preg_match('#^/admin/devis/(?P<id>[^/]++)/edit$#s'$pathinfo$matches)) {
  189.                     if (!in_array($canonicalMethod, array('GET''POST'))) {
  190.                         $allow array_merge($allow, array('GET''POST'));
  191.                         goto not_devis_edit;
  192.                     }
  193.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'devis_edit')), array (  '_controller' => 'AdminBundle\\Controller\\DevisController::editAction',));
  194.                 }
  195.                 not_devis_edit:
  196.                 // devis_delete
  197.                 if (preg_match('#^/admin/devis/(?P<id>[^/]++)$#s'$pathinfo$matches)) {
  198.                     if ('DELETE' !== $canonicalMethod) {
  199.                         $allow[] = 'DELETE';
  200.                         goto not_devis_delete;
  201.                     }
  202.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'devis_delete')), array (  '_controller' => 'AdminBundle\\Controller\\DevisController::deleteAction',));
  203.                 }
  204.                 not_devis_delete:
  205.             }
  206.             // generate_devis_admin
  207.             if ('/admin/generate_devis' === $pathinfo) {
  208.                 return array (  '_controller' => 'ClientBundle\\Controller\\DevisController::generateAction',  '_route' => 'generate_devis_admin',);
  209.             }
  210.             if (=== strpos($pathinfo'/admin/group')) {
  211.                 // groups_home
  212.                 if ('/admin/group' === $trimmedPathinfo) {
  213.                     if (substr($pathinfo, -1) !== '/') {
  214.                         return $this->redirect($rawPathinfo.'/''groups_home');
  215.                     }
  216.                     return array (  '_controller' => 'AdminBundle\\Controller\\GroupsController::HomeAction',  '_route' => 'groups_home',);
  217.                 }
  218.                 // groups_add
  219.                 if ('/admin/group/add' === $pathinfo) {
  220.                     return array (  '_controller' => 'AdminBundle\\Controller\\GroupsController::addAction',  '_route' => 'groups_add',);
  221.                 }
  222.                 // group_edit
  223.                 if (preg_match('#^/admin/group/(?P<id>\\d+)/edit$#s'$pathinfo$matches)) {
  224.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'group_edit')), array (  '_controller' => 'AdminBundle\\Controller\\GroupsController::editAction',));
  225.                 }
  226.                 // group_delete
  227.                 if (preg_match('#^/admin/group/(?P<id>[^/]++)/supprimer$#s'$pathinfo$matches)) {
  228.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'group_delete')), array (  '_controller' => 'AdminBundle\\Controller\\GroupsController::deleteAction',));
  229.                 }
  230.             }
  231.             elseif (=== strpos($pathinfo'/admin/events')) {
  232.                 // events_typesformulas_show
  233.                 if (preg_match('#^/admin/events/(?P<event>\\d+)/(?P<id>\\d+)$#s'$pathinfo$matches)) {
  234.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'events_typesformulas_show')), array (  '_controller' => 'AdminBundle\\Controller\\Events\\EventFormulasController::showFormulasType',));
  235.                 }
  236.                 // events_formulas_edit
  237.                 if (preg_match('#^/admin/events/(?P<event>\\d+)/(?P<id>\\d+)/(?P<formulas>\\d+)/edit$#s'$pathinfo$matches)) {
  238.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'events_formulas_edit')), array (  '_controller' => 'AdminBundle\\Controller\\Events\\EventFormulasController::editAction',));
  239.                 }
  240.                 // events_formulas_delete
  241.                 if (preg_match('#^/admin/events/(?P<event>\\d+)/(?P<id>\\d+)/(?P<formulas>\\d+)/supprimer$#s'$pathinfo$matches)) {
  242.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'events_formulas_delete')), array (  '_controller' => 'AdminBundle\\Controller\\Events\\EventFormulasController::deleteAction',));
  243.                 }
  244.                 // events_formulas_status
  245.                 if (preg_match('#^/admin/events/(?P<event>[^/]++)/(?P<id>[^/]++)/(?P<formulas>[^/]++)/status$#s'$pathinfo$matches)) {
  246.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'events_formulas_status')), array (  '_controller' => 'AdminBundle\\Controller\\Events\\EventFormulasController::switchstatus',));
  247.                 }
  248.                 // events_home
  249.                 if ('/admin/events' === $trimmedPathinfo) {
  250.                     if (substr($pathinfo, -1) !== '/') {
  251.                         return $this->redirect($rawPathinfo.'/''events_home');
  252.                     }
  253.                     return array (  '_controller' => 'AdminBundle\\Controller\\Events\\EventTypeController::HomeAction',  '_route' => 'events_home',);
  254.                 }
  255.                 // event_edit
  256.                 if (preg_match('#^/admin/events/(?P<id>[^/]++)/edit$#s'$pathinfo$matches)) {
  257.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'event_edit')), array (  '_controller' => 'AdminBundle\\Controller\\Events\\EventTypeController::editAction',));
  258.                 }
  259.                 // event_delete
  260.                 if (preg_match('#^/admin/events/(?P<id>[^/]++)/supprimer$#s'$pathinfo$matches)) {
  261.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'event_delete')), array (  '_controller' => 'AdminBundle\\Controller\\Events\\EventTypeController::deleteAction',));
  262.                 }
  263.                 // event_status
  264.                 if (preg_match('#^/admin/events/(?P<id>[^/]++)/status$#s'$pathinfo$matches)) {
  265.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'event_status')), array (  '_controller' => 'AdminBundle\\Controller\\Events\\EventTypeController::switchstatus',));
  266.                 }
  267.                 // events_event_show
  268.                 if (preg_match('#^/admin/events/(?P<id>\\d+)$#s'$pathinfo$matches)) {
  269.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'events_event_show')), array (  '_controller' => 'AdminBundle\\Controller\\Events\\EventsTypeFormulasController::showEvents',));
  270.                 }
  271.                 // events_typesformulas_edit
  272.                 if (preg_match('#^/admin/events/(?P<event>\\d+)/(?P<id>\\d+)/edit$#s'$pathinfo$matches)) {
  273.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'events_typesformulas_edit')), array (  '_controller' => 'AdminBundle\\Controller\\Events\\EventsTypeFormulasController::editAction',));
  274.                 }
  275.                 // events_typesformulas_delete
  276.                 if (preg_match('#^/admin/events/(?P<event>[^/]++)/(?P<id>[^/]++)/supprimer$#s'$pathinfo$matches)) {
  277.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'events_typesformulas_delete')), array (  '_controller' => 'AdminBundle\\Controller\\Events\\EventsTypeFormulasController::deleteAction',));
  278.                 }
  279.                 // events_typesformulas_status
  280.                 if (preg_match('#^/admin/events/(?P<event>[^/]++)/(?P<id>[^/]++)/status$#s'$pathinfo$matches)) {
  281.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'events_typesformulas_status')), array (  '_controller' => 'AdminBundle\\Controller\\Events\\EventsTypeFormulasController::switchstatus',));
  282.                 }
  283.             }
  284.             // dashboard
  285.             if ('/admin' === $pathinfo) {
  286.                 return array (  '_controller' => 'AdminBundle\\Controller\\HomeController::indexAction',  '_route' => 'dashboard',);
  287.             }
  288.             // import
  289.             if ('/admin/import' === $pathinfo) {
  290.                 return array (  '_controller' => 'AdminBundle\\Controller\\HomeController::indsdexAction',  '_route' => 'import',);
  291.             }
  292.             if (=== strpos($pathinfo'/admin/mail')) {
  293.                 // mail
  294.                 if ('/admin/mail' === $pathinfo) {
  295.                     return array (  '_controller' => 'AdminBundle\\Controller\\MailController::indexAction',  '_route' => 'mail',);
  296.                 }
  297.                 // mail_add
  298.                 if ('/admin/mail/add' === $pathinfo) {
  299.                     return array (  '_controller' => 'AdminBundle\\Controller\\MailController::addAction',  '_route' => 'mail_add',);
  300.                 }
  301.                 // mail_delete
  302.                 if (preg_match('#^/admin/mail/(?P<id>[^/]++)/supprimer$#s'$pathinfo$matches)) {
  303.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'mail_delete')), array (  '_controller' => 'AdminBundle\\Controller\\MailController::deleteAction',));
  304.                 }
  305.                 // mail_edit
  306.                 if (preg_match('#^/admin/mail/(?P<id>[^/]++)/edit$#s'$pathinfo$matches)) {
  307.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'mail_edit')), array (  '_controller' => 'AdminBundle\\Controller\\MailController::editAction',));
  308.                 }
  309.             }
  310.             elseif (=== strpos($pathinfo'/admin/message')) {
  311.                 // message
  312.                 if ('/admin/message' === $pathinfo) {
  313.                     return array (  '_controller' => 'AdminBundle\\Controller\\MessageController::indexAction',  '_route' => 'message',);
  314.                 }
  315.                 // message_add
  316.                 if ('/admin/message/add' === $pathinfo) {
  317.                     return array (  '_controller' => 'AdminBundle\\Controller\\MessageController::addAction',  '_route' => 'message_add',);
  318.                 }
  319.                 // message_edit
  320.                 if (preg_match('#^/admin/message/(?P<id>[^/]++)/edit$#s'$pathinfo$matches)) {
  321.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'message_edit')), array (  '_controller' => 'AdminBundle\\Controller\\MessageController::editAction',));
  322.                 }
  323.             }
  324.             elseif (=== strpos($pathinfo'/admin/prelevement')) {
  325.                 // prelevement_edit
  326.                 if (=== strpos($pathinfo'/admin/prelevement/edit') && preg_match('#^/admin/prelevement/edit/(?P<id>\\d+)$#s'$pathinfo$matches)) {
  327.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'prelevement_edit')), array (  '_controller' => 'AdminBundle\\Controller\\PrelevementController::editAction',));
  328.                 }
  329.                 // prelevement_add
  330.                 if ('/admin/prelevement/add' === $pathinfo) {
  331.                     if (!in_array($canonicalMethod, array('GET''POST'))) {
  332.                         $allow array_merge($allow, array('GET''POST'));
  333.                         goto not_prelevement_add;
  334.                     }
  335.                     return array (  '_controller' => 'AdminBundle\\Controller\\PrelevementController::addAction',  '_route' => 'prelevement_add',);
  336.                 }
  337.                 not_prelevement_add:
  338.                 // prelevement_manage
  339.                 if ('/admin/prelevement' === $trimmedPathinfo) {
  340.                     if ('GET' !== $canonicalMethod) {
  341.                         $allow[] = 'GET';
  342.                         goto not_prelevement_manage;
  343.                     }
  344.                     if (substr($pathinfo, -1) !== '/') {
  345.                         return $this->redirect($rawPathinfo.'/''prelevement_manage');
  346.                     }
  347.                     return array (  '_controller' => 'AdminBundle\\Controller\\PrelevementController::indexAction',  '_route' => 'prelevement_manage',);
  348.                 }
  349.                 not_prelevement_manage:
  350.                 // prelevement_show
  351.                 if (preg_match('#^/admin/prelevement/(?P<id>[^/]++)$#s'$pathinfo$matches)) {
  352.                     if ('GET' !== $canonicalMethod) {
  353.                         $allow[] = 'GET';
  354.                         goto not_prelevement_show;
  355.                     }
  356.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'prelevement_show')), array (  '_controller' => 'AdminBundle\\Controller\\PrelevementController::showAction',));
  357.                 }
  358.                 not_prelevement_show:
  359.                 // prelevement_delete
  360.                 if (=== strpos($pathinfo'/admin/prelevement/delete') && preg_match('#^/admin/prelevement/delete/(?P<id>[^/]++)$#s'$pathinfo$matches)) {
  361.                     if ('GET' !== $canonicalMethod) {
  362.                         $allow[] = 'GET';
  363.                         goto not_prelevement_delete;
  364.                     }
  365.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'prelevement_delete')), array (  '_controller' => 'AdminBundle\\Controller\\PrelevementController::deleteAction',));
  366.                 }
  367.                 not_prelevement_delete:
  368.             }
  369.             elseif (=== strpos($pathinfo'/admin/trajet')) {
  370.                 // trajet
  371.                 if ('/admin/trajet' === $pathinfo) {
  372.                     return array (  '_controller' => 'AdminBundle\\Controller\\TrajetController::indexAction',  '_route' => 'trajet',);
  373.                 }
  374.                 // trajet_add
  375.                 if ('/admin/trajet/add' === $pathinfo) {
  376.                     return array (  '_controller' => 'AdminBundle\\Controller\\TrajetController::addAction',  '_route' => 'trajet_add',);
  377.                 }
  378.                 // trajet_delete
  379.                 if (preg_match('#^/admin/trajet/(?P<id>[^/]++)/supprimer$#s'$pathinfo$matches)) {
  380.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'trajet_delete')), array (  '_controller' => 'AdminBundle\\Controller\\TrajetController::deleteAction',));
  381.                 }
  382.                 // trajet_edit
  383.                 if (preg_match('#^/admin/trajet/(?P<id>[^/]++)/edit$#s'$pathinfo$matches)) {
  384.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'trajet_edit')), array (  '_controller' => 'AdminBundle\\Controller\\TrajetController::editAction',));
  385.                 }
  386.             }
  387.         }
  388.         elseif (=== strpos($pathinfo'/api')) {
  389.             if (=== strpos($pathinfo'/api/calendar')) {
  390.                 // getCalendar
  391.                 if (preg_match('#^/api/calendar/(?P<group>\\d+)/(?P<year>\\d+)$#s'$pathinfo$matches)) {
  392.                     if ('GET' !== $canonicalMethod) {
  393.                         $allow[] = 'GET';
  394.                         goto not_getCalendar;
  395.                     }
  396.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'getCalendar')), array (  '_controller' => 'APIBundle\\Controller\\CalendarController::getAction',));
  397.                 }
  398.                 not_getCalendar:
  399.                 // addCalendar
  400.                 if (preg_match('#^/api/calendar/(?P<group>\\d+)$#s'$pathinfo$matches)) {
  401.                     if ('POST' !== $canonicalMethod) {
  402.                         $allow[] = 'POST';
  403.                         goto not_addCalendar;
  404.                     }
  405.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'addCalendar')), array (  '_controller' => 'APIBundle\\Controller\\CalendarController::addAction',));
  406.                 }
  407.                 not_addCalendar:
  408.                 // editCalendar
  409.                 if (preg_match('#^/api/calendar/(?P<id>\\d+)$#s'$pathinfo$matches)) {
  410.                     if ('PUT' !== $canonicalMethod) {
  411.                         $allow[] = 'PUT';
  412.                         goto not_editCalendar;
  413.                     }
  414.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'editCalendar')), array (  '_controller' => 'APIBundle\\Controller\\CalendarController::editAction',));
  415.                 }
  416.                 not_editCalendar:
  417.                 // deleteCalendar
  418.                 if (preg_match('#^/api/calendar/(?P<id>\\d+)$#s'$pathinfo$matches)) {
  419.                     if ('DELETE' !== $canonicalMethod) {
  420.                         $allow[] = 'DELETE';
  421.                         goto not_deleteCalendar;
  422.                     }
  423.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'deleteCalendar')), array (  '_controller' => 'APIBundle\\Controller\\CalendarController::deleteAction',));
  424.                 }
  425.                 not_deleteCalendar:
  426.                 // lastIdCalendar
  427.                 if ('/api/calendar/lastid' === $trimmedPathinfo) {
  428.                     if ('GET' !== $canonicalMethod) {
  429.                         $allow[] = 'GET';
  430.                         goto not_lastIdCalendar;
  431.                     }
  432.                     if (substr($pathinfo, -1) !== '/') {
  433.                         return $this->redirect($rawPathinfo.'/''lastIdCalendar');
  434.                     }
  435.                     return array (  '_controller' => 'APIBundle\\Controller\\CalendarController::lastIdAction',  '_route' => 'lastIdCalendar',);
  436.                 }
  437.                 not_lastIdCalendar:
  438.             }
  439.             elseif (=== strpos($pathinfo'/api/city')) {
  440.                 // api_city_city
  441.                 if (preg_match('#^/api/city/(?P<cp>\\d+)$#s'$pathinfo$matches)) {
  442.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_city_city')), array (  '_controller' => 'APIBundle\\Controller\\CityController::CityAction',));
  443.                 }
  444.                 // api_city_cityname
  445.                 if ('/api/cityname' === $trimmedPathinfo) {
  446.                     if (substr($pathinfo, -1) !== '/') {
  447.                         return $this->redirect($rawPathinfo.'/''api_city_cityname');
  448.                     }
  449.                     return array (  '_controller' => 'APIBundle\\Controller\\CityController::CityNameAction',  '_route' => 'api_city_cityname',);
  450.                 }
  451.             }
  452.             elseif (=== strpos($pathinfo'/api/d')) {
  453.                 if (=== strpos($pathinfo'/api/department')) {
  454.                     // department_add
  455.                     if (preg_match('#^/api/department/(?P<code>[a-zA-Z0-9]{2})/(?P<group>\\d+)$#s'$pathinfo$matches)) {
  456.                         if ('POST' !== $canonicalMethod) {
  457.                             $allow[] = 'POST';
  458.                             goto not_department_add;
  459.                         }
  460.                         return $this->mergeDefaults(array_replace($matches, array('_route' => 'department_add')), array (  '_controller' => 'APIBundle\\Controller\\DepartmentController::addAction',));
  461.                     }
  462.                     not_department_add:
  463.                     // department_by
  464.                     if (preg_match('#^/api/department/(?P<group>\\d+)$#s'$pathinfo$matches)) {
  465.                         if ('GET' !== $canonicalMethod) {
  466.                             $allow[] = 'GET';
  467.                             goto not_department_by;
  468.                         }
  469.                         return $this->mergeDefaults(array_replace($matches, array('_route' => 'department_by')), array (  '_controller' => 'APIBundle\\Controller\\DepartmentController::getbyAction',));
  470.                     }
  471.                     not_department_by:
  472.                 }
  473.                 // devis_anonyme
  474.                 if (=== strpos($pathinfo'/api/devis') && preg_match('#^/api/devis/(?P<CustomID>[a-zA-Z0-9-]+)/(?P<PrivateID>[a-zA-Z0-9-]+)/delete$#s'$pathinfo$matches)) {
  475.                     if ('DELETE' !== $canonicalMethod) {
  476.                         $allow[] = 'DELETE';
  477.                         goto not_devis_anonyme;
  478.                     }
  479.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'devis_anonyme')), array (  '_controller' => 'APIBundle\\Controller\\DevisAPIController::deleteDevisAction',));
  480.                 }
  481.                 not_devis_anonyme:
  482.                 // api_displaymessage_read
  483.                 if (=== strpos($pathinfo'/api/displaymsg') && preg_match('#^/api/displaymsg/(?P<id>\\d+)$#s'$pathinfo$matches)) {
  484.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_displaymessage_read')), array (  '_controller' => 'APIBundle\\Controller\\DisplayMessageController::readAction',));
  485.                 }
  486.             }
  487.             // api_groups_groups
  488.             if (=== strpos($pathinfo'/api/groups') && preg_match('#^/api/groups/(?P<id>\\d+)/(?P<id_group>\\d*)$#s'$pathinfo$matches)) {
  489.                 return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_groups_groups')), array (  '_controller' => 'APIBundle\\Controller\\GroupsController::GroupsAction',));
  490.             }
  491.             // StatusAction
  492.             if (=== strpos($pathinfo'/api/status') && preg_match('#^/api/status/(?P<customid>[a-zA-Z0-9-]+)$#s'$pathinfo$matches)) {
  493.                 return $this->mergeDefaults(array_replace($matches, array('_route' => 'StatusAction')), array (  '_controller' => 'APIBundle\\Controller\\StatusController::StatusAction',));
  494.             }
  495.         }
  496.         elseif (=== strpos($pathinfo'/s')) {
  497.             // msg
  498.             if ('/sms' === $pathinfo) {
  499.                 return array (  '_controller' => 'APIBundle\\Controller\\SimController::indexAction',  '_route' => 'msg',);
  500.             }
  501.             // show_devis
  502.             if ('/show' === $pathinfo) {
  503.                 return array (  '_controller' => 'ClientBundle\\Controller\\DevisController::showAction',  '_route' => 'show_devis',);
  504.             }
  505.             // sg_datatables_edit
  506.             if ('/sg/datatables/edit/field' === $pathinfo) {
  507.                 if ('POST' !== $canonicalMethod) {
  508.                     $allow[] = 'POST';
  509.                     goto not_sg_datatables_edit;
  510.                 }
  511.                 return array (  '_controller' => 'AppBundle\\Controller\\DatatableController::editAction',  '_route' => 'sg_datatables_edit',);
  512.             }
  513.             not_sg_datatables_edit:
  514.         }
  515.         // generate_devis
  516.         if ('' === $trimmedPathinfo) {
  517.             if (substr($pathinfo, -1) !== '/') {
  518.                 return $this->redirect($rawPathinfo.'/''generate_devis');
  519.             }
  520.             return array (  '_controller' => 'ClientBundle\\Controller\\DevisController::accueilAction',  '_route' => 'generate_devis',);
  521.         }
  522.         // edit_devis
  523.         if (=== strpos($pathinfo'/devis') && preg_match('#^/devis/(?P<CustomID>[^/]++)/(?P<PrivateID>[^/]++)$#s'$pathinfo$matches)) {
  524.             return $this->mergeDefaults(array_replace($matches, array('_route' => 'edit_devis')), array (  '_controller' => 'ClientBundle\\Controller\\DevisController::editAction',));
  525.         }
  526.         // generate_pdf
  527.         if (=== strpos($pathinfo'/pdf') && preg_match('#^/pdf/(?P<token>[^/]++)/Votre_devis_Gospel_Event\\.pdf$#s'$pathinfo$matches)) {
  528.             return $this->mergeDefaults(array_replace($matches, array('_route' => 'generate_pdf')), array (  '_controller' => 'ClientBundle\\Controller\\PdfController::accueilAction',));
  529.         }
  530.         if (=== strpos($pathinfo'/profile')) {
  531.             // fos_user_profile_show
  532.             if ('/profile' === $trimmedPathinfo) {
  533.                 if ('GET' !== $canonicalMethod) {
  534.                     $allow[] = 'GET';
  535.                     goto not_fos_user_profile_show;
  536.                 }
  537.                 if (substr($pathinfo, -1) !== '/') {
  538.                     return $this->redirect($rawPathinfo.'/''fos_user_profile_show');
  539.                 }
  540.                 return array (  '_controller' => 'FOS\\UserBundle\\Controller\\ProfileController::showAction',  '_route' => 'fos_user_profile_show',);
  541.             }
  542.             not_fos_user_profile_show:
  543.             // fos_user_profile_edit
  544.             if ('/profile/edit' === $pathinfo) {
  545.                 if (!in_array($canonicalMethod, array('GET''POST'))) {
  546.                     $allow array_merge($allow, array('GET''POST'));
  547.                     goto not_fos_user_profile_edit;
  548.                 }
  549.                 return array (  '_controller' => 'FOS\\UserBundle\\Controller\\ProfileController::editAction',  '_route' => 'fos_user_profile_edit',);
  550.             }
  551.             not_fos_user_profile_edit:
  552.             // fos_user_change_password
  553.             if ('/profile/change-password' === $pathinfo) {
  554.                 if (!in_array($canonicalMethod, array('GET''POST'))) {
  555.                     $allow array_merge($allow, array('GET''POST'));
  556.                     goto not_fos_user_change_password;
  557.                 }
  558.                 return array (  '_controller' => 'FOS\\UserBundle\\Controller\\ChangePasswordController::changePasswordAction',  '_route' => 'fos_user_change_password',);
  559.             }
  560.             not_fos_user_change_password:
  561.         }
  562.         // testtest
  563.         if ('/testtest' === $pathinfo) {
  564.             return array (  '_controller' => 'AdminBundle\\Controller\\HomeController::testtestAction',  '_route' => 'testtest',);
  565.         }
  566.         if (=== strpos($pathinfo'/login')) {
  567.             // fos_user_security_login
  568.             if ('/login' === $pathinfo) {
  569.                 if (!in_array($canonicalMethod, array('GET''POST'))) {
  570.                     $allow array_merge($allow, array('GET''POST'));
  571.                     goto not_fos_user_security_login;
  572.                 }
  573.                 return array (  '_controller' => 'FOS\\UserBundle\\Controller\\SecurityController::loginAction',  '_route' => 'fos_user_security_login',);
  574.             }
  575.             not_fos_user_security_login:
  576.             // fos_user_security_check
  577.             if ('/login_check' === $pathinfo) {
  578.                 if ('POST' !== $canonicalMethod) {
  579.                     $allow[] = 'POST';
  580.                     goto not_fos_user_security_check;
  581.                 }
  582.                 return array (  '_controller' => 'FOS\\UserBundle\\Controller\\SecurityController::checkAction',  '_route' => 'fos_user_security_check',);
  583.             }
  584.             not_fos_user_security_check:
  585.         }
  586.         // fos_user_security_logout
  587.         if ('/logout' === $pathinfo) {
  588.             if (!in_array($canonicalMethod, array('GET''POST'))) {
  589.                 $allow array_merge($allow, array('GET''POST'));
  590.                 goto not_fos_user_security_logout;
  591.             }
  592.             return array (  '_controller' => 'FOS\\UserBundle\\Controller\\SecurityController::logoutAction',  '_route' => 'fos_user_security_logout',);
  593.         }
  594.         not_fos_user_security_logout:
  595.         if (=== strpos($pathinfo'/register')) {
  596.             // fos_user_registration_register
  597.             if ('/register' === $trimmedPathinfo) {
  598.                 if (!in_array($canonicalMethod, array('GET''POST'))) {
  599.                     $allow array_merge($allow, array('GET''POST'));
  600.                     goto not_fos_user_registration_register;
  601.                 }
  602.                 if (substr($pathinfo, -1) !== '/') {
  603.                     return $this->redirect($rawPathinfo.'/''fos_user_registration_register');
  604.                 }
  605.                 return array (  '_controller' => 'AdminBundle\\Controller\\RegistrationController::registerAction',  '_route' => 'fos_user_registration_register',);
  606.             }
  607.             not_fos_user_registration_register:
  608.             // fos_user_registration_check_email
  609.             if ('/register/check-email' === $pathinfo) {
  610.                 if ('GET' !== $canonicalMethod) {
  611.                     $allow[] = 'GET';
  612.                     goto not_fos_user_registration_check_email;
  613.                 }
  614.                 return array (  '_controller' => 'AdminBundle\\Controller\\RegistrationController::checkEmailAction',  '_route' => 'fos_user_registration_check_email',);
  615.             }
  616.             not_fos_user_registration_check_email:
  617.             if (=== strpos($pathinfo'/register/confirm')) {
  618.                 // fos_user_registration_confirm
  619.                 if (preg_match('#^/register/confirm/(?P<token>[^/]++)$#s'$pathinfo$matches)) {
  620.                     if ('GET' !== $canonicalMethod) {
  621.                         $allow[] = 'GET';
  622.                         goto not_fos_user_registration_confirm;
  623.                     }
  624.                     return $this->mergeDefaults(array_replace($matches, array('_route' => 'fos_user_registration_confirm')), array (  '_controller' => 'AdminBundle\\Controller\\RegistrationController::confirmAction',));
  625.                 }
  626.                 not_fos_user_registration_confirm:
  627.                 // fos_user_registration_confirmed
  628.                 if ('/register/confirmed' === $pathinfo) {
  629.                     if ('GET' !== $canonicalMethod) {
  630.                         $allow[] = 'GET';
  631.                         goto not_fos_user_registration_confirmed;
  632.                     }
  633.                     return array (  '_controller' => 'AdminBundle\\Controller\\RegistrationController::confirmedAction',  '_route' => 'fos_user_registration_confirmed',);
  634.                 }
  635.                 not_fos_user_registration_confirmed:
  636.             }
  637.         }
  638.         elseif (=== strpos($pathinfo'/resetting')) {
  639.             // fos_user_resetting_request
  640.             if ('/resetting/request' === $pathinfo) {
  641.                 if ('GET' !== $canonicalMethod) {
  642.                     $allow[] = 'GET';
  643.                     goto not_fos_user_resetting_request;
  644.                 }
  645.                 return array (  '_controller' => 'FOS\\UserBundle\\Controller\\ResettingController::requestAction',  '_route' => 'fos_user_resetting_request',);
  646.             }
  647.             not_fos_user_resetting_request:
  648.             // fos_user_resetting_reset
  649.             if (=== strpos($pathinfo'/resetting/reset') && preg_match('#^/resetting/reset/(?P<token>[^/]++)$#s'$pathinfo$matches)) {
  650.                 if (!in_array($canonicalMethod, array('GET''POST'))) {
  651.                     $allow array_merge($allow, array('GET''POST'));
  652.                     goto not_fos_user_resetting_reset;
  653.                 }
  654.                 return $this->mergeDefaults(array_replace($matches, array('_route' => 'fos_user_resetting_reset')), array (  '_controller' => 'FOS\\UserBundle\\Controller\\ResettingController::resetAction',));
  655.             }
  656.             not_fos_user_resetting_reset:
  657.             // fos_user_resetting_send_email
  658.             if ('/resetting/send-email' === $pathinfo) {
  659.                 if ('POST' !== $canonicalMethod) {
  660.                     $allow[] = 'POST';
  661.                     goto not_fos_user_resetting_send_email;
  662.                 }
  663.                 return array (  '_controller' => 'FOS\\UserBundle\\Controller\\ResettingController::sendEmailAction',  '_route' => 'fos_user_resetting_send_email',);
  664.             }
  665.             not_fos_user_resetting_send_email:
  666.             // fos_user_resetting_check_email
  667.             if ('/resetting/check-email' === $pathinfo) {
  668.                 if ('GET' !== $canonicalMethod) {
  669.                     $allow[] = 'GET';
  670.                     goto not_fos_user_resetting_check_email;
  671.                 }
  672.                 return array (  '_controller' => 'FOS\\UserBundle\\Controller\\ResettingController::checkEmailAction',  '_route' => 'fos_user_resetting_check_email',);
  673.             }
  674.             not_fos_user_resetting_check_email:
  675.         }
  676.         // fos_js_routing_js
  677.         if (=== strpos($pathinfo'/js/routing') && preg_match('#^/js/routing(?:\\.(?P<_format>js|json))?$#s'$pathinfo$matches)) {
  678.             return $this->mergeDefaults(array_replace($matches, array('_route' => 'fos_js_routing_js')), array (  '_controller' => 'fos_js_routing.controller:indexAction',  '_format' => 'js',));
  679.         }
  680.         // homepage
  681.         if ('' === $trimmedPathinfo) {
  682.             if (substr($pathinfo, -1) !== '/') {
  683.                 return $this->redirect($rawPathinfo.'/''homepage');
  684.             }
  685.             return array (  '_controller' => 'AppBundle\\Controller\\DefaultController::indexAction',  '_route' => 'homepage',);
  686.         }
  687.         throw count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
  688.     }
  689. }