Files
boutique-fanny/cache/dev/ProjectUrlMatcherLocalPickup.php
2019-05-26 15:57:49 +02:00

44 lines
1.3 KiB
PHP

<?php
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
use Symfony\Component\Routing\RequestContext;
/**
* ProjectUrlMatcherLocalPickup.
*
* This class has been auto-generated
* by the Symfony Routing Component.
*/
class ProjectUrlMatcherLocalPickup extends Symfony\Component\Routing\Matcher\UrlMatcher
{
/**
* Constructor.
*/
public function __construct(RequestContext $context)
{
$this->context = $context;
}
public function match($pathinfo)
{
$allow = array();
$pathinfo = rawurldecode($pathinfo);
$context = $this->context;
$request = $this->request;
// localpickup.configure
if ($pathinfo === '/admin/module/localpickup/configure') {
if ($this->context->getMethod() != 'POST') {
$allow[] = 'POST';
goto not_localpickupconfigure;
}
return array ( '_controller' => 'LocalPickup\\Controller\\SetDeliveryPrice::configure', '_route' => 'localpickup.configure',);
}
not_localpickupconfigure:
throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
}
}