47 lines
1.7 KiB
PHP
47 lines
1.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 ProjectUrlMatcherPlanificationLivraison 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/PlanificationLivraison')) {
|
|
// planiflivraison.configuration
|
|
if ('/admin/module/PlanificationLivraison/configuration/update' === $pathinfo) {
|
|
if ($this->context->getMethod() != 'POST') {
|
|
$allow[] = 'POST';
|
|
goto not_planiflivraisonconfiguration;
|
|
}
|
|
|
|
return array ( '_controller' => 'PlanificationLivraison\\Controller\\Configuration::editConfig', '_route' => 'planiflivraison.configuration',);
|
|
}
|
|
not_planiflivraisonconfiguration:
|
|
|
|
// planiflivraison.products.list
|
|
if ('/admin/module/PlanificationLivraison/products' === $pathinfo) {
|
|
return array ( '_controller' => 'PlanificationLivraison\\Controller\\ProductsList::viewAction', '_route' => 'planiflivraison.products.list',);
|
|
}
|
|
|
|
}
|
|
|
|
throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
|
|
}
|
|
}
|