38 lines
1.1 KiB
PHP
38 lines
1.1 KiB
PHP
<?php
|
|
|
|
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
|
|
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
|
|
use Symfony\Component\Routing\RequestContext;
|
|
|
|
/**
|
|
* ProjectUrlMatcherFreeDelivery.
|
|
*
|
|
* This class has been auto-generated
|
|
* by the Symfony Routing Component.
|
|
*/
|
|
class ProjectUrlMatcherFreeDelivery 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;
|
|
|
|
// freedelivery.save
|
|
if ($pathinfo === '/admin/module/freedelivery/save') {
|
|
return array ( '_controller' => 'FreeDelivery\\Controller\\ConfigurationController::saveAction', '_route' => 'freedelivery.save',);
|
|
}
|
|
|
|
throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
|
|
}
|
|
}
|