Файл: forsoc.ru/cache/url_matcher.php
Строк: 66
<?php
use SymfonyComponentRoutingExceptionMethodNotAllowedException;
use SymfonyComponentRoutingExceptionResourceNotFoundException;
use SymfonyComponentRoutingRequestContext;
/**
* phpbb_url_matcher.
*
* This class has been auto-generated
* by the Symfony Routing Component.
*/
class phpbb_url_matcher extends SymfonyComponentRoutingMatcherUrlMatcher
{
/**
* Constructor.
*/
public function __construct(RequestContext $context)
{
$this->context = $context;
}
public function match($pathinfo)
{
$allow = array();
$pathinfo = rawurldecode($pathinfo);
if (0 === strpos($pathinfo, '/sitemap')) {
// shredder_sitemap_controller
if ($pathinfo === '/sitemap.xml') {
return array ( '_controller' => 'shredder.sitemap.controller:display_sitemap', '_route' => 'shredder_sitemap_controller',);
}
// shredder_sitemap_controller_file
if (preg_match('#^/sitemap\-(?P<seqno>\d+)\.xml$#s', $pathinfo, $matches)) {
return $this->mergeDefaults(array_replace($matches, array('_route' => 'shredder_sitemap_controller_file')), array ( '_controller' => 'shredder.sitemap.controller:display_sitemap_seqno_file: seqno',));
}
}
throw 0 < count($allow) ? new MethodNotAllowedException(array_unique($allow)) : new ResourceNotFoundException();
}
}