3 use Symfony\Component\Routing\Exception\MethodNotAllowedException
;
4 use Symfony\Component\Routing\Exception\ResourceNotFoundException
;
5 use Symfony\Component\Routing\RequestContext
;
10 * This class has been auto-generated
11 * by the Symfony Routing Component.
13 class ProjectUrlMatcher
extends Symfony\Component\Routing\Matcher\UrlMatcher
18 public function __construct(RequestContext
$context)
20 $this->context
= $context;
23 public function match($pathinfo)
26 $pathinfo = rawurldecode($pathinfo);
28 if (0 === strpos($pathinfo, '/rootprefix')) {
30 if ($pathinfo === '/rootprefix/test') {
31 return array('_route' => 'static');
35 if (preg_match('#^/rootprefix/(?P<var>[^/]++)$#s', $pathinfo, $matches)) {
36 return $this->mergeDefaults(array_replace($matches, array('_route' => 'dynamic')), array ());
41 throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();