<?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 = array();
$pathinfo = rawurldecode($rawPathinfo);
$trimmedPathinfo = rtrim($pathinfo, '/');
$context = $this->context;
$request = $this->request;
$requestMethod = $canonicalMethod = $context->getMethod();
$scheme = $context->getScheme();
if ('HEAD' === $requestMethod) {
$canonicalMethod = 'GET';
}
if (0 === strpos($pathinfo, '/_')) {
// _wdt
if (0 === strpos($pathinfo, '/_wdt') && preg_match('#^/_wdt/(?P<token>[^/]++)$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => '_wdt')), array ( '_controller' => 'web_profiler.controller.profiler:toolbarAction',));
}
if (0 === strpos($pathinfo, '/_profiler')) {
// _profiler_home
if ('/_profiler' === $trimmedPathinfo) {
if (substr($pathinfo, -1) !== '/') {
return $this->redirect($rawPathinfo.'/', '_profiler_home');
}
return array ( '_controller' => 'web_profiler.controller.profiler:homeAction', '_route' => '_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$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_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>[^/]++)$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler')), array ( '_controller' => 'web_profiler.controller.profiler:panelAction',));
}
// _profiler_router
if (preg_match('#^/_profiler/(?P<token>[^/]++)/router$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_router')), array ( '_controller' => 'web_profiler.controller.router:panelAction',));
}
// _profiler_exception
if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => '_profiler_exception')), array ( '_controller' => 'web_profiler.controller.exception:showAction',));
}
// _profiler_exception_css
if (preg_match('#^/_profiler/(?P<token>[^/]++)/exception\\.css$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_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>[^/]++))?$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => '_twig_error_test')), array ( '_controller' => 'twig.controller.preview_error:previewErrorPageAction', '_format' => 'html',));
}
}
elseif (0 === strpos($pathinfo, '/admin')) {
// calendar
if (0 === strpos($pathinfo, '/admin/calendar') && preg_match('#^/admin/calendar/(?P<id>\\d+)$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'calendar')), array ( '_controller' => 'APIBundle\\Controller\\CalendarController::indexAction',));
}
if (0 === strpos($pathinfo, '/admin/city')) {
// admin_city
if ('/admin/city' === $trimmedPathinfo) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_admin_city;
}
if (substr($pathinfo, -1) !== '/') {
return $this->redirect($rawPathinfo.'/', 'admin_city');
}
return array ( '_controller' => 'AdminBundle\\Controller\\CityController::indexAction', '_route' => 'admin_city',);
}
not_admin_city:
// admin_city_new
if ('/admin/city/new' === $pathinfo) {
if (!in_array($canonicalMethod, array('GET', 'POST'))) {
$allow = array_merge($allow, array('GET', 'POST'));
goto not_admin_city_new;
}
return array ( '_controller' => 'AdminBundle\\Controller\\CityController::newAction', '_route' => 'admin_city_new',);
}
not_admin_city_new:
// admin_city_show
if (preg_match('#^/admin/city/(?P<id>[^/]++)$#s', $pathinfo, $matches)) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_admin_city_show;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'admin_city_show')), array ( '_controller' => 'AdminBundle\\Controller\\CityController::showAction',));
}
not_admin_city_show:
// admin_city_edit
if (preg_match('#^/admin/city/(?P<id>[^/]++)/edit$#s', $pathinfo, $matches)) {
if (!in_array($canonicalMethod, array('GET', 'POST'))) {
$allow = array_merge($allow, array('GET', 'POST'));
goto not_admin_city_edit;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'admin_city_edit')), array ( '_controller' => 'AdminBundle\\Controller\\CityController::editAction',));
}
not_admin_city_edit:
// admin_city_delete
if (preg_match('#^/admin/city/(?P<id>[^/]++)$#s', $pathinfo, $matches)) {
if ('DELETE' !== $canonicalMethod) {
$allow[] = 'DELETE';
goto not_admin_city_delete;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'admin_city_delete')), array ( '_controller' => 'AdminBundle\\Controller\\CityController::deleteAction',));
}
not_admin_city_delete:
// admin_city_by_id_delete
if (0 === strpos($pathinfo, '/admin/city/delete') && preg_match('#^/admin/city/delete/(?P<id>[^/]++)$#s', $pathinfo, $matches)) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_admin_city_by_id_delete;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'admin_city_by_id_delete')), array ( '_controller' => 'AdminBundle\\Controller\\CityController::deleteByIdAction',));
}
not_admin_city_by_id_delete:
// admin_city_bulk_action
if ('/admin/city/bulk-action/' === $pathinfo) {
if ('POST' !== $canonicalMethod) {
$allow[] = 'POST';
goto not_admin_city_bulk_action;
}
return array ( '_controller' => 'AdminBundle\\Controller\\CityController::bulkAction', '_route' => 'admin_city_bulk_action',);
}
not_admin_city_bulk_action:
}
// department
if (0 === strpos($pathinfo, '/admin/department') && preg_match('#^/admin/department/(?P<id>\\d+)$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'department')), array ( '_controller' => 'APIBundle\\Controller\\DepartmentController::indexAction',));
}
if (0 === strpos($pathinfo, '/admin/devis')) {
// devis_manage
if ('/admin/devis' === $trimmedPathinfo) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_devis_manage;
}
if (substr($pathinfo, -1) !== '/') {
return $this->redirect($rawPathinfo.'/', 'devis_manage');
}
return array ( '_controller' => 'AdminBundle\\Controller\\DevisController::indexAction', '_route' => 'devis_manage',);
}
not_devis_manage:
// bypass_relance
if (0 === strpos($pathinfo, '/admin/devis/bypass_relance') && preg_match('#^/admin/devis/bypass_relance/(?P<id>[^/]++)/(?P<checkbox>[^/]++)$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'bypass_relance')), array ( '_controller' => 'AdminBundle\\Controller\\DevisController::Bypassrelance',));
}
// devis_show
if (preg_match('#^/admin/devis/(?P<id>[^/]++)$#s', $pathinfo, $matches)) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_devis_show;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'devis_show')), array ( '_controller' => 'AdminBundle\\Controller\\DevisController::showAction',));
}
not_devis_show:
// devis_edit
if (preg_match('#^/admin/devis/(?P<id>[^/]++)/edit$#s', $pathinfo, $matches)) {
if (!in_array($canonicalMethod, array('GET', 'POST'))) {
$allow = array_merge($allow, array('GET', 'POST'));
goto not_devis_edit;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'devis_edit')), array ( '_controller' => 'AdminBundle\\Controller\\DevisController::editAction',));
}
not_devis_edit:
// devis_delete
if (preg_match('#^/admin/devis/(?P<id>[^/]++)$#s', $pathinfo, $matches)) {
if ('DELETE' !== $canonicalMethod) {
$allow[] = 'DELETE';
goto not_devis_delete;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'devis_delete')), array ( '_controller' => 'AdminBundle\\Controller\\DevisController::deleteAction',));
}
not_devis_delete:
}
// generate_devis_admin
if ('/admin/generate_devis' === $pathinfo) {
return array ( '_controller' => 'ClientBundle\\Controller\\DevisController::generateAction', '_route' => 'generate_devis_admin',);
}
if (0 === strpos($pathinfo, '/admin/group')) {
// groups_home
if ('/admin/group' === $trimmedPathinfo) {
if (substr($pathinfo, -1) !== '/') {
return $this->redirect($rawPathinfo.'/', 'groups_home');
}
return array ( '_controller' => 'AdminBundle\\Controller\\GroupsController::HomeAction', '_route' => 'groups_home',);
}
// groups_add
if ('/admin/group/add' === $pathinfo) {
return array ( '_controller' => 'AdminBundle\\Controller\\GroupsController::addAction', '_route' => 'groups_add',);
}
// group_edit
if (preg_match('#^/admin/group/(?P<id>\\d+)/edit$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'group_edit')), array ( '_controller' => 'AdminBundle\\Controller\\GroupsController::editAction',));
}
// group_delete
if (preg_match('#^/admin/group/(?P<id>[^/]++)/supprimer$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'group_delete')), array ( '_controller' => 'AdminBundle\\Controller\\GroupsController::deleteAction',));
}
}
elseif (0 === strpos($pathinfo, '/admin/events')) {
// events_typesformulas_show
if (preg_match('#^/admin/events/(?P<event>\\d+)/(?P<id>\\d+)$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'events_typesformulas_show')), array ( '_controller' => 'AdminBundle\\Controller\\Events\\EventFormulasController::showFormulasType',));
}
// events_formulas_edit
if (preg_match('#^/admin/events/(?P<event>\\d+)/(?P<id>\\d+)/(?P<formulas>\\d+)/edit$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'events_formulas_edit')), array ( '_controller' => 'AdminBundle\\Controller\\Events\\EventFormulasController::editAction',));
}
// events_formulas_delete
if (preg_match('#^/admin/events/(?P<event>\\d+)/(?P<id>\\d+)/(?P<formulas>\\d+)/supprimer$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'events_formulas_delete')), array ( '_controller' => 'AdminBundle\\Controller\\Events\\EventFormulasController::deleteAction',));
}
// events_formulas_status
if (preg_match('#^/admin/events/(?P<event>[^/]++)/(?P<id>[^/]++)/(?P<formulas>[^/]++)/status$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'events_formulas_status')), array ( '_controller' => 'AdminBundle\\Controller\\Events\\EventFormulasController::switchstatus',));
}
// events_home
if ('/admin/events' === $trimmedPathinfo) {
if (substr($pathinfo, -1) !== '/') {
return $this->redirect($rawPathinfo.'/', 'events_home');
}
return array ( '_controller' => 'AdminBundle\\Controller\\Events\\EventTypeController::HomeAction', '_route' => 'events_home',);
}
// event_edit
if (preg_match('#^/admin/events/(?P<id>[^/]++)/edit$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'event_edit')), array ( '_controller' => 'AdminBundle\\Controller\\Events\\EventTypeController::editAction',));
}
// event_delete
if (preg_match('#^/admin/events/(?P<id>[^/]++)/supprimer$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'event_delete')), array ( '_controller' => 'AdminBundle\\Controller\\Events\\EventTypeController::deleteAction',));
}
// event_status
if (preg_match('#^/admin/events/(?P<id>[^/]++)/status$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'event_status')), array ( '_controller' => 'AdminBundle\\Controller\\Events\\EventTypeController::switchstatus',));
}
// events_event_show
if (preg_match('#^/admin/events/(?P<id>\\d+)$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'events_event_show')), array ( '_controller' => 'AdminBundle\\Controller\\Events\\EventsTypeFormulasController::showEvents',));
}
// events_typesformulas_edit
if (preg_match('#^/admin/events/(?P<event>\\d+)/(?P<id>\\d+)/edit$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'events_typesformulas_edit')), array ( '_controller' => 'AdminBundle\\Controller\\Events\\EventsTypeFormulasController::editAction',));
}
// events_typesformulas_delete
if (preg_match('#^/admin/events/(?P<event>[^/]++)/(?P<id>[^/]++)/supprimer$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'events_typesformulas_delete')), array ( '_controller' => 'AdminBundle\\Controller\\Events\\EventsTypeFormulasController::deleteAction',));
}
// events_typesformulas_status
if (preg_match('#^/admin/events/(?P<event>[^/]++)/(?P<id>[^/]++)/status$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'events_typesformulas_status')), array ( '_controller' => 'AdminBundle\\Controller\\Events\\EventsTypeFormulasController::switchstatus',));
}
}
// dashboard
if ('/admin' === $pathinfo) {
return array ( '_controller' => 'AdminBundle\\Controller\\HomeController::indexAction', '_route' => 'dashboard',);
}
// import
if ('/admin/import' === $pathinfo) {
return array ( '_controller' => 'AdminBundle\\Controller\\HomeController::indsdexAction', '_route' => 'import',);
}
if (0 === strpos($pathinfo, '/admin/mail')) {
// mail
if ('/admin/mail' === $pathinfo) {
return array ( '_controller' => 'AdminBundle\\Controller\\MailController::indexAction', '_route' => 'mail',);
}
// mail_add
if ('/admin/mail/add' === $pathinfo) {
return array ( '_controller' => 'AdminBundle\\Controller\\MailController::addAction', '_route' => 'mail_add',);
}
// mail_delete
if (preg_match('#^/admin/mail/(?P<id>[^/]++)/supprimer$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'mail_delete')), array ( '_controller' => 'AdminBundle\\Controller\\MailController::deleteAction',));
}
// mail_edit
if (preg_match('#^/admin/mail/(?P<id>[^/]++)/edit$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'mail_edit')), array ( '_controller' => 'AdminBundle\\Controller\\MailController::editAction',));
}
}
elseif (0 === strpos($pathinfo, '/admin/message')) {
// message
if ('/admin/message' === $pathinfo) {
return array ( '_controller' => 'AdminBundle\\Controller\\MessageController::indexAction', '_route' => 'message',);
}
// message_add
if ('/admin/message/add' === $pathinfo) {
return array ( '_controller' => 'AdminBundle\\Controller\\MessageController::addAction', '_route' => 'message_add',);
}
// message_edit
if (preg_match('#^/admin/message/(?P<id>[^/]++)/edit$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'message_edit')), array ( '_controller' => 'AdminBundle\\Controller\\MessageController::editAction',));
}
}
elseif (0 === strpos($pathinfo, '/admin/prelevement')) {
// prelevement_edit
if (0 === strpos($pathinfo, '/admin/prelevement/edit') && preg_match('#^/admin/prelevement/edit/(?P<id>\\d+)$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'prelevement_edit')), array ( '_controller' => 'AdminBundle\\Controller\\PrelevementController::editAction',));
}
// prelevement_add
if ('/admin/prelevement/add' === $pathinfo) {
if (!in_array($canonicalMethod, array('GET', 'POST'))) {
$allow = array_merge($allow, array('GET', 'POST'));
goto not_prelevement_add;
}
return array ( '_controller' => 'AdminBundle\\Controller\\PrelevementController::addAction', '_route' => 'prelevement_add',);
}
not_prelevement_add:
// prelevement_manage
if ('/admin/prelevement' === $trimmedPathinfo) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_prelevement_manage;
}
if (substr($pathinfo, -1) !== '/') {
return $this->redirect($rawPathinfo.'/', 'prelevement_manage');
}
return array ( '_controller' => 'AdminBundle\\Controller\\PrelevementController::indexAction', '_route' => 'prelevement_manage',);
}
not_prelevement_manage:
// prelevement_show
if (preg_match('#^/admin/prelevement/(?P<id>[^/]++)$#s', $pathinfo, $matches)) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_prelevement_show;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'prelevement_show')), array ( '_controller' => 'AdminBundle\\Controller\\PrelevementController::showAction',));
}
not_prelevement_show:
// prelevement_delete
if (0 === strpos($pathinfo, '/admin/prelevement/delete') && preg_match('#^/admin/prelevement/delete/(?P<id>[^/]++)$#s', $pathinfo, $matches)) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_prelevement_delete;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'prelevement_delete')), array ( '_controller' => 'AdminBundle\\Controller\\PrelevementController::deleteAction',));
}
not_prelevement_delete:
}
elseif (0 === strpos($pathinfo, '/admin/trajet')) {
// trajet
if ('/admin/trajet' === $pathinfo) {
return array ( '_controller' => 'AdminBundle\\Controller\\TrajetController::indexAction', '_route' => 'trajet',);
}
// trajet_add
if ('/admin/trajet/add' === $pathinfo) {
return array ( '_controller' => 'AdminBundle\\Controller\\TrajetController::addAction', '_route' => 'trajet_add',);
}
// trajet_delete
if (preg_match('#^/admin/trajet/(?P<id>[^/]++)/supprimer$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'trajet_delete')), array ( '_controller' => 'AdminBundle\\Controller\\TrajetController::deleteAction',));
}
// trajet_edit
if (preg_match('#^/admin/trajet/(?P<id>[^/]++)/edit$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'trajet_edit')), array ( '_controller' => 'AdminBundle\\Controller\\TrajetController::editAction',));
}
}
}
elseif (0 === strpos($pathinfo, '/api')) {
if (0 === strpos($pathinfo, '/api/calendar')) {
// getCalendar
if (preg_match('#^/api/calendar/(?P<group>\\d+)/(?P<year>\\d+)$#s', $pathinfo, $matches)) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_getCalendar;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'getCalendar')), array ( '_controller' => 'APIBundle\\Controller\\CalendarController::getAction',));
}
not_getCalendar:
// addCalendar
if (preg_match('#^/api/calendar/(?P<group>\\d+)$#s', $pathinfo, $matches)) {
if ('POST' !== $canonicalMethod) {
$allow[] = 'POST';
goto not_addCalendar;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'addCalendar')), array ( '_controller' => 'APIBundle\\Controller\\CalendarController::addAction',));
}
not_addCalendar:
// editCalendar
if (preg_match('#^/api/calendar/(?P<id>\\d+)$#s', $pathinfo, $matches)) {
if ('PUT' !== $canonicalMethod) {
$allow[] = 'PUT';
goto not_editCalendar;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'editCalendar')), array ( '_controller' => 'APIBundle\\Controller\\CalendarController::editAction',));
}
not_editCalendar:
// deleteCalendar
if (preg_match('#^/api/calendar/(?P<id>\\d+)$#s', $pathinfo, $matches)) {
if ('DELETE' !== $canonicalMethod) {
$allow[] = 'DELETE';
goto not_deleteCalendar;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'deleteCalendar')), array ( '_controller' => 'APIBundle\\Controller\\CalendarController::deleteAction',));
}
not_deleteCalendar:
// lastIdCalendar
if ('/api/calendar/lastid' === $trimmedPathinfo) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_lastIdCalendar;
}
if (substr($pathinfo, -1) !== '/') {
return $this->redirect($rawPathinfo.'/', 'lastIdCalendar');
}
return array ( '_controller' => 'APIBundle\\Controller\\CalendarController::lastIdAction', '_route' => 'lastIdCalendar',);
}
not_lastIdCalendar:
}
elseif (0 === strpos($pathinfo, '/api/city')) {
// api_city_city
if (preg_match('#^/api/city/(?P<cp>\\d+)$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_city_city')), array ( '_controller' => 'APIBundle\\Controller\\CityController::CityAction',));
}
// api_city_cityname
if ('/api/cityname' === $trimmedPathinfo) {
if (substr($pathinfo, -1) !== '/') {
return $this->redirect($rawPathinfo.'/', 'api_city_cityname');
}
return array ( '_controller' => 'APIBundle\\Controller\\CityController::CityNameAction', '_route' => 'api_city_cityname',);
}
}
elseif (0 === strpos($pathinfo, '/api/d')) {
if (0 === strpos($pathinfo, '/api/department')) {
// department_add
if (preg_match('#^/api/department/(?P<code>[a-zA-Z0-9]{2})/(?P<group>\\d+)$#s', $pathinfo, $matches)) {
if ('POST' !== $canonicalMethod) {
$allow[] = 'POST';
goto not_department_add;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'department_add')), array ( '_controller' => 'APIBundle\\Controller\\DepartmentController::addAction',));
}
not_department_add:
// department_by
if (preg_match('#^/api/department/(?P<group>\\d+)$#s', $pathinfo, $matches)) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_department_by;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'department_by')), array ( '_controller' => 'APIBundle\\Controller\\DepartmentController::getbyAction',));
}
not_department_by:
}
// devis_anonyme
if (0 === strpos($pathinfo, '/api/devis') && preg_match('#^/api/devis/(?P<CustomID>[a-zA-Z0-9-]+)/(?P<PrivateID>[a-zA-Z0-9-]+)/delete$#s', $pathinfo, $matches)) {
if ('DELETE' !== $canonicalMethod) {
$allow[] = 'DELETE';
goto not_devis_anonyme;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'devis_anonyme')), array ( '_controller' => 'APIBundle\\Controller\\DevisAPIController::deleteDevisAction',));
}
not_devis_anonyme:
// api_displaymessage_read
if (0 === strpos($pathinfo, '/api/displaymsg') && preg_match('#^/api/displaymsg/(?P<id>\\d+)$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_displaymessage_read')), array ( '_controller' => 'APIBundle\\Controller\\DisplayMessageController::readAction',));
}
}
// api_groups_groups
if (0 === strpos($pathinfo, '/api/groups') && preg_match('#^/api/groups/(?P<id>\\d+)/(?P<id_group>\\d*)$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'api_groups_groups')), array ( '_controller' => 'APIBundle\\Controller\\GroupsController::GroupsAction',));
}
// StatusAction
if (0 === strpos($pathinfo, '/api/status') && preg_match('#^/api/status/(?P<customid>[a-zA-Z0-9-]+)$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'StatusAction')), array ( '_controller' => 'APIBundle\\Controller\\StatusController::StatusAction',));
}
}
elseif (0 === strpos($pathinfo, '/s')) {
// msg
if ('/sms' === $pathinfo) {
return array ( '_controller' => 'APIBundle\\Controller\\SimController::indexAction', '_route' => 'msg',);
}
// show_devis
if ('/show' === $pathinfo) {
return array ( '_controller' => 'ClientBundle\\Controller\\DevisController::showAction', '_route' => 'show_devis',);
}
// sg_datatables_edit
if ('/sg/datatables/edit/field' === $pathinfo) {
if ('POST' !== $canonicalMethod) {
$allow[] = 'POST';
goto not_sg_datatables_edit;
}
return array ( '_controller' => 'AppBundle\\Controller\\DatatableController::editAction', '_route' => 'sg_datatables_edit',);
}
not_sg_datatables_edit:
}
// generate_devis
if ('' === $trimmedPathinfo) {
if (substr($pathinfo, -1) !== '/') {
return $this->redirect($rawPathinfo.'/', 'generate_devis');
}
return array ( '_controller' => 'ClientBundle\\Controller\\DevisController::accueilAction', '_route' => 'generate_devis',);
}
// edit_devis
if (0 === strpos($pathinfo, '/devis') && preg_match('#^/devis/(?P<CustomID>[^/]++)/(?P<PrivateID>[^/]++)$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'edit_devis')), array ( '_controller' => 'ClientBundle\\Controller\\DevisController::editAction',));
}
// generate_pdf
if (0 === strpos($pathinfo, '/pdf') && preg_match('#^/pdf/(?P<token>[^/]++)/Votre_devis_Gospel_Event\\.pdf$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'generate_pdf')), array ( '_controller' => 'ClientBundle\\Controller\\PdfController::accueilAction',));
}
if (0 === strpos($pathinfo, '/profile')) {
// fos_user_profile_show
if ('/profile' === $trimmedPathinfo) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_fos_user_profile_show;
}
if (substr($pathinfo, -1) !== '/') {
return $this->redirect($rawPathinfo.'/', 'fos_user_profile_show');
}
return array ( '_controller' => 'FOS\\UserBundle\\Controller\\ProfileController::showAction', '_route' => 'fos_user_profile_show',);
}
not_fos_user_profile_show:
// fos_user_profile_edit
if ('/profile/edit' === $pathinfo) {
if (!in_array($canonicalMethod, array('GET', 'POST'))) {
$allow = array_merge($allow, array('GET', 'POST'));
goto not_fos_user_profile_edit;
}
return array ( '_controller' => 'FOS\\UserBundle\\Controller\\ProfileController::editAction', '_route' => 'fos_user_profile_edit',);
}
not_fos_user_profile_edit:
// fos_user_change_password
if ('/profile/change-password' === $pathinfo) {
if (!in_array($canonicalMethod, array('GET', 'POST'))) {
$allow = array_merge($allow, array('GET', 'POST'));
goto not_fos_user_change_password;
}
return array ( '_controller' => 'FOS\\UserBundle\\Controller\\ChangePasswordController::changePasswordAction', '_route' => 'fos_user_change_password',);
}
not_fos_user_change_password:
}
// testtest
if ('/testtest' === $pathinfo) {
return array ( '_controller' => 'AdminBundle\\Controller\\HomeController::testtestAction', '_route' => 'testtest',);
}
if (0 === strpos($pathinfo, '/login')) {
// fos_user_security_login
if ('/login' === $pathinfo) {
if (!in_array($canonicalMethod, array('GET', 'POST'))) {
$allow = array_merge($allow, array('GET', 'POST'));
goto not_fos_user_security_login;
}
return array ( '_controller' => 'FOS\\UserBundle\\Controller\\SecurityController::loginAction', '_route' => 'fos_user_security_login',);
}
not_fos_user_security_login:
// fos_user_security_check
if ('/login_check' === $pathinfo) {
if ('POST' !== $canonicalMethod) {
$allow[] = 'POST';
goto not_fos_user_security_check;
}
return array ( '_controller' => 'FOS\\UserBundle\\Controller\\SecurityController::checkAction', '_route' => 'fos_user_security_check',);
}
not_fos_user_security_check:
}
// fos_user_security_logout
if ('/logout' === $pathinfo) {
if (!in_array($canonicalMethod, array('GET', 'POST'))) {
$allow = array_merge($allow, array('GET', 'POST'));
goto not_fos_user_security_logout;
}
return array ( '_controller' => 'FOS\\UserBundle\\Controller\\SecurityController::logoutAction', '_route' => 'fos_user_security_logout',);
}
not_fos_user_security_logout:
if (0 === strpos($pathinfo, '/register')) {
// fos_user_registration_register
if ('/register' === $trimmedPathinfo) {
if (!in_array($canonicalMethod, array('GET', 'POST'))) {
$allow = array_merge($allow, array('GET', 'POST'));
goto not_fos_user_registration_register;
}
if (substr($pathinfo, -1) !== '/') {
return $this->redirect($rawPathinfo.'/', 'fos_user_registration_register');
}
return array ( '_controller' => 'AdminBundle\\Controller\\RegistrationController::registerAction', '_route' => 'fos_user_registration_register',);
}
not_fos_user_registration_register:
// fos_user_registration_check_email
if ('/register/check-email' === $pathinfo) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_fos_user_registration_check_email;
}
return array ( '_controller' => 'AdminBundle\\Controller\\RegistrationController::checkEmailAction', '_route' => 'fos_user_registration_check_email',);
}
not_fos_user_registration_check_email:
if (0 === strpos($pathinfo, '/register/confirm')) {
// fos_user_registration_confirm
if (preg_match('#^/register/confirm/(?P<token>[^/]++)$#s', $pathinfo, $matches)) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_fos_user_registration_confirm;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'fos_user_registration_confirm')), array ( '_controller' => 'AdminBundle\\Controller\\RegistrationController::confirmAction',));
}
not_fos_user_registration_confirm:
// fos_user_registration_confirmed
if ('/register/confirmed' === $pathinfo) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_fos_user_registration_confirmed;
}
return array ( '_controller' => 'AdminBundle\\Controller\\RegistrationController::confirmedAction', '_route' => 'fos_user_registration_confirmed',);
}
not_fos_user_registration_confirmed:
}
}
elseif (0 === strpos($pathinfo, '/resetting')) {
// fos_user_resetting_request
if ('/resetting/request' === $pathinfo) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_fos_user_resetting_request;
}
return array ( '_controller' => 'FOS\\UserBundle\\Controller\\ResettingController::requestAction', '_route' => 'fos_user_resetting_request',);
}
not_fos_user_resetting_request:
// fos_user_resetting_reset
if (0 === strpos($pathinfo, '/resetting/reset') && preg_match('#^/resetting/reset/(?P<token>[^/]++)$#s', $pathinfo, $matches)) {
if (!in_array($canonicalMethod, array('GET', 'POST'))) {
$allow = array_merge($allow, array('GET', 'POST'));
goto not_fos_user_resetting_reset;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'fos_user_resetting_reset')), array ( '_controller' => 'FOS\\UserBundle\\Controller\\ResettingController::resetAction',));
}
not_fos_user_resetting_reset:
// fos_user_resetting_send_email
if ('/resetting/send-email' === $pathinfo) {
if ('POST' !== $canonicalMethod) {
$allow[] = 'POST';
goto not_fos_user_resetting_send_email;
}
return array ( '_controller' => 'FOS\\UserBundle\\Controller\\ResettingController::sendEmailAction', '_route' => 'fos_user_resetting_send_email',);
}
not_fos_user_resetting_send_email:
// fos_user_resetting_check_email
if ('/resetting/check-email' === $pathinfo) {
if ('GET' !== $canonicalMethod) {
$allow[] = 'GET';
goto not_fos_user_resetting_check_email;
}
return array ( '_controller' => 'FOS\\UserBundle\\Controller\\ResettingController::checkEmailAction', '_route' => 'fos_user_resetting_check_email',);
}
not_fos_user_resetting_check_email:
}
// fos_js_routing_js
if (0 === strpos($pathinfo, '/js/routing') && preg_match('#^/js/routing(?:\\.(?P<_format>js|json))?$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'fos_js_routing_js')), array ( '_controller' => 'fos_js_routing.controller:indexAction', '_format' => 'js',));
}
// homepage
if ('' === $trimmedPathinfo) {
if (substr($pathinfo, -1) !== '/') {
return $this->redirect($rawPathinfo.'/', 'homepage');
}
return array ( '_controller' => 'AppBundle\\Controller\\DefaultController::indexAction', '_route' => 'homepage',);
}
throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
}
}