Files
apart-moment/cache/prod/ProjectUrlMatcherShortcuts.php
2021-03-23 13:54:38 +01:00

51 lines
1.6 KiB
PHP

<?php
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
use Symfony\Component\Routing\RequestContext;
/**
* ProjectUrlMatcherShortcuts.
*
* This class has been auto-generated
* by the Symfony Routing Component.
*/
class ProjectUrlMatcherShortcuts 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;
if (0 === strpos($pathinfo, '/admin/module/Shortcuts')) {
// shortcuts-settings
if ($pathinfo === '/admin/module/Shortcuts') {
return array ( '_controller' => 'Shortcuts:Shortcuts:index', '_route' => 'shortcuts-settings',);
}
// shortcuts.create-shortcut
if ($pathinfo === '/admin/module/Shortcuts/create') {
return array ( '_controller' => 'Shortcuts:Shortcuts:create', '_route' => 'shortcuts.create-shortcut',);
}
// shortcuts.delete-shortcut
if ($pathinfo === '/admin/module/Shortcuts/delete') {
return array ( '_controller' => 'Shortcuts:Shortcuts:delete', '_route' => 'shortcuts.delete-shortcut',);
}
}
throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
}
}