136 lines
5.7 KiB
PHP
136 lines
5.7 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 ProjectUrlMatcherPointRetrait 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/PointRetrait')) {
|
|
// pdr.places.list
|
|
if ('/admin/module/PointRetrait' === $pathinfo) {
|
|
if (!in_array($this->context->getMethod(), array('GET', 'HEAD'))) {
|
|
$allow = array_merge($allow, array('GET', 'HEAD'));
|
|
goto not_pdrplaceslist;
|
|
}
|
|
|
|
return array ( '_controller' => 'PointRetrait\\Controller\\backOffice\\ListController::viewAction', '_route' => 'pdr.places.list',);
|
|
}
|
|
not_pdrplaceslist:
|
|
|
|
// pdr.toggle.active
|
|
if (0 === strpos($pathinfo, '/admin/module/PointRetrait/toggle-online') && preg_match('#^/admin/module/PointRetrait/toggle\\-online/(?P<id>\\d+)$#sD', $pathinfo, $matches)) {
|
|
if ($this->context->getMethod() != 'POST') {
|
|
$allow[] = 'POST';
|
|
goto not_pdrtoggleactive;
|
|
}
|
|
|
|
return $this->mergeDefaults(array_replace($matches, array('_route' => 'pdr.toggle.active')), array ( '_controller' => 'PointRetrait\\Controller\\backOffice\\ListController::toggleActive',));
|
|
}
|
|
not_pdrtoggleactive:
|
|
|
|
// pdr.place.create
|
|
if ('/admin/module/PointRetrait' === $pathinfo) {
|
|
if ($this->context->getMethod() != 'POST') {
|
|
$allow[] = 'POST';
|
|
goto not_pdrplacecreate;
|
|
}
|
|
|
|
return array ( '_controller' => 'PointRetrait\\Controller\\backOffice\\PlaceController::createPlace', '_route' => 'pdr.place.create',);
|
|
}
|
|
not_pdrplacecreate:
|
|
|
|
if (0 === strpos($pathinfo, '/admin/module/PointRetrait/edit')) {
|
|
// pdr.place.view
|
|
if ('/admin/module/PointRetrait/edit' === $pathinfo) {
|
|
if (!in_array($this->context->getMethod(), array('GET', 'HEAD'))) {
|
|
$allow = array_merge($allow, array('GET', 'HEAD'));
|
|
goto not_pdrplaceview;
|
|
}
|
|
|
|
return array ( '_controller' => 'PointRetrait\\Controller\\backOffice\\PlaceController::viewPlace', '_route' => 'pdr.place.view',);
|
|
}
|
|
not_pdrplaceview:
|
|
|
|
// pdr.place.edit
|
|
if ('/admin/module/PointRetrait/edit' === $pathinfo) {
|
|
if ($this->context->getMethod() != 'POST') {
|
|
$allow[] = 'POST';
|
|
goto not_pdrplaceedit;
|
|
}
|
|
|
|
return array ( '_controller' => 'PointRetrait\\Controller\\backOffice\\PlaceController::editPlace', '_route' => 'pdr.place.edit',);
|
|
}
|
|
not_pdrplaceedit:
|
|
|
|
}
|
|
|
|
// pdr.place.delete
|
|
if ('/admin/module/PointRetrait/delete' === $pathinfo) {
|
|
if ($this->context->getMethod() != 'POST') {
|
|
$allow[] = 'POST';
|
|
goto not_pdrplacedelete;
|
|
}
|
|
|
|
return array ( '_controller' => 'PointRetrait\\Controller\\backOffice\\PlaceController::deletePlace', '_route' => 'pdr.place.delete',);
|
|
}
|
|
not_pdrplacedelete:
|
|
|
|
if (0 === strpos($pathinfo, '/admin/module/PointRetrait/schedule')) {
|
|
// pdr.schedule.create
|
|
if ('/admin/module/PointRetrait/schedule/create' === $pathinfo) {
|
|
if ($this->context->getMethod() != 'POST') {
|
|
$allow[] = 'POST';
|
|
goto not_pdrschedulecreate;
|
|
}
|
|
|
|
return array ( '_controller' => 'PointRetrait\\Controller\\backOffice\\ScheduleController::createSchedule', '_route' => 'pdr.schedule.create',);
|
|
}
|
|
not_pdrschedulecreate:
|
|
|
|
// pdr.schedule.update
|
|
if ('/admin/module/PointRetrait/schedule/update' === $pathinfo) {
|
|
if ($this->context->getMethod() != 'POST') {
|
|
$allow[] = 'POST';
|
|
goto not_pdrscheduleupdate;
|
|
}
|
|
|
|
return array ( '_controller' => 'PointRetrait\\Controller\\backOffice\\ScheduleController::updateSchedule', '_route' => 'pdr.schedule.update',);
|
|
}
|
|
not_pdrscheduleupdate:
|
|
|
|
// pdr.schedule.delete
|
|
if ('/admin/module/PointRetrait/schedule/delete' === $pathinfo) {
|
|
if ($this->context->getMethod() != 'POST') {
|
|
$allow[] = 'POST';
|
|
goto not_pdrscheduledelete;
|
|
}
|
|
|
|
return array ( '_controller' => 'PointRetrait\\Controller\\backOffice\\ScheduleController::deleteSchedule', '_route' => 'pdr.schedule.delete',);
|
|
}
|
|
not_pdrscheduledelete:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
|
|
}
|
|
}
|