Add a Drupal-overriding UrlMatcher Final Matcher.
parent
960f926ebe
commit
83c95d7c62
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
namespace Drupal\Core\Routing;
|
||||
|
||||
use Symfony\Cmf\Component\Routing\NestedMatcher\UrlMatcher as BaseUrlMatcher;
|
||||
|
||||
/**
|
||||
* Description of UrlMatcher
|
||||
*
|
||||
* @author crell
|
||||
*/
|
||||
class UrlMatcher extends BaseUrlMatcher {
|
||||
|
||||
public function finalMatch(RouteCollection $collection, Request $request) {
|
||||
$this->routes = $collection;
|
||||
$context = new RequestContext();
|
||||
$context->fromRequest($request);
|
||||
$this->setContext($context);
|
||||
return $this->match($request->attributes->get('system_path'));
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue