Files
aux-bieaux-legumes/.well-known/cache/dev/ProjectUrlMatcherLivraisonParSecteurs.php
2021-04-08 15:57:38 +02:00

155 lines
7.5 KiB
PHP

<?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 ProjectUrlMatcherLivraisonParSecteurs extends Symfony\Component\Routing\Matcher\UrlMatcher
{
public function __construct(RequestContext $context)
{
$this->context = $context;
}
public function match($rawPathinfo)
{
$allow = array();
$pathinfo = rawurldecode($rawPathinfo);
$context = $this->context;
$request = $this->request ?: $this->createRequest($pathinfo);
if (0 === strpos($pathinfo, '/admin/module/LivraisonParSecteurs')) {
// livraisonparsecteurs.area.list
if ('/admin/module/LivraisonParSecteurs' === $pathinfo) {
if (!in_array($this->context->getMethod(), array('GET', 'HEAD'))) {
$allow = array_merge($allow, array('GET', 'HEAD'));
goto not_livraisonparsecteursarealist;
}
return array ( '_controller' => 'LivraisonParSecteurs\\Controller\\backOffice\\ListController::viewAction', '_route' => 'livraisonparsecteurs.area.list',);
}
not_livraisonparsecteursarealist:
// livraisonparsecteurs.toggle.active
if (0 === strpos($pathinfo, '/admin/module/LivraisonParSecteurs/toggle-online') && preg_match('#^/admin/module/LivraisonParSecteurs/toggle\\-online/(?P<id>\\d+)$#sD', $pathinfo, $matches)) {
if ($this->context->getMethod() != 'POST') {
$allow[] = 'POST';
goto not_livraisonparsecteurstoggleactive;
}
return $this->mergeDefaults(array_replace($matches, array('_route' => 'livraisonparsecteurs.toggle.active')), array ( '_controller' => 'LivraisonParSecteurs\\Controller\\backOffice\\ListController::toggleActive',));
}
not_livraisonparsecteurstoggleactive:
if (0 === strpos($pathinfo, '/admin/module/LivraisonParSecteurs/edit')) {
// livraisonparsecteurs.area.view
if ('/admin/module/LivraisonParSecteurs/edit' === $pathinfo) {
if (!in_array($this->context->getMethod(), array('GET', 'HEAD'))) {
$allow = array_merge($allow, array('GET', 'HEAD'));
goto not_livraisonparsecteursareaview;
}
return array ( '_controller' => 'LivraisonParSecteurs\\Controller\\backOffice\\GeneralController::viewArea', '_route' => 'livraisonparsecteurs.area.view',);
}
not_livraisonparsecteursareaview:
// livraisonparsecteurs.area.edit
if ('/admin/module/LivraisonParSecteurs/edit' === $pathinfo) {
if ($this->context->getMethod() != 'POST') {
$allow[] = 'POST';
goto not_livraisonparsecteursareaedit;
}
return array ( '_controller' => 'LivraisonParSecteurs\\Controller\\backOffice\\GeneralController::editArea', '_route' => 'livraisonparsecteurs.area.edit',);
}
not_livraisonparsecteursareaedit:
}
// lps-area-create
if ('/admin/module/LivraisonParSecteurs' === $pathinfo) {
if ($this->context->getMethod() != 'POST') {
$allow[] = 'POST';
goto not_lpsareacreate;
}
return array ( '_controller' => 'LivraisonParSecteurs\\Controller\\backOffice\\GeneralController::createArea', '_route' => 'lps-area-create',);
}
not_lpsareacreate:
// livraisonparsecteurs.area.delete
if ('/admin/module/LivraisonParSecteurs/delete' === $pathinfo) {
return array ( '_controller' => 'LivraisonParSecteurs\\Controller\\backOffice\\GeneralController::deleteArea', '_route' => 'livraisonparsecteurs.area.delete',);
}
if (0 === strpos($pathinfo, '/admin/module/LivraisonParSecteurs/schedule')) {
// livraisonparsecteurs.area.schedule.delete
if ('/admin/module/LivraisonParSecteurs/schedule/delete' === $pathinfo) {
if ($this->context->getMethod() != 'POST') {
$allow[] = 'POST';
goto not_livraisonparsecteursareascheduledelete;
}
return array ( '_controller' => 'LivraisonParSecteurs\\Controller\\backOffice\\ScheduleController::deleteSchedule', '_route' => 'livraisonparsecteurs.area.schedule.delete',);
}
not_livraisonparsecteursareascheduledelete:
// livraisonparsecteurs.area.schedule.update
if ('/admin/module/LivraisonParSecteurs/schedule/update' === $pathinfo) {
if ($this->context->getMethod() != 'POST') {
$allow[] = 'POST';
goto not_livraisonparsecteursareascheduleupdate;
}
return array ( '_controller' => 'LivraisonParSecteurs\\Controller\\backOffice\\ScheduleController::updateSchedule', '_route' => 'livraisonparsecteurs.area.schedule.update',);
}
not_livraisonparsecteursareascheduleupdate:
// livraisonparsecteurs.area.schedule.create
if ('/admin/module/LivraisonParSecteurs/schedule/create' === $pathinfo) {
if ($this->context->getMethod() != 'POST') {
$allow[] = 'POST';
goto not_livraisonparsecteursareaschedulecreate;
}
return array ( '_controller' => 'LivraisonParSecteurs\\Controller\\backOffice\\ScheduleController::createSchedule', '_route' => 'livraisonparsecteurs.area.schedule.create',);
}
not_livraisonparsecteursareaschedulecreate:
}
if (0 === strpos($pathinfo, '/admin/module/LivraisonParSecteurs/city')) {
// livraisonparsecteurs.area.cities.remove
if ('/admin/module/LivraisonParSecteurs/city/remove' === $pathinfo) {
if ($this->context->getMethod() != 'POST') {
$allow[] = 'POST';
goto not_livraisonparsecteursareacitiesremove;
}
return array ( '_controller' => 'LivraisonParSecteurs\\Controller\\backOffice\\CitiesController::removeCity', '_route' => 'livraisonparsecteurs.area.cities.remove',);
}
not_livraisonparsecteursareacitiesremove:
// livraisonparsecteurs.area.cities.add
if ('/admin/module/LivraisonParSecteurs/city/add' === $pathinfo) {
if ($this->context->getMethod() != 'POST') {
$allow[] = 'POST';
goto not_livraisonparsecteursareacitiesadd;
}
return array ( '_controller' => 'LivraisonParSecteurs\\Controller\\backOffice\\CitiesController::addCity', '_route' => 'livraisonparsecteurs.area.cities.add',);
}
not_livraisonparsecteursareacitiesadd:
}
}
throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
}
}