Our UrlMatcher has no need for the constructor parameters, so eliminate them entirely to simplify matters.

8.0.x
Larry Garfield 2012-12-24 18:38:10 -06:00
parent ed9c2a50f5
commit 35230f21ec
1 changed files with 5 additions and 0 deletions

View File

@ -2,6 +2,9 @@
namespace Drupal\Core\Routing;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\RouteCollection;
use Symfony\Component\Routing\RequestContext;
use Symfony\Cmf\Component\Routing\NestedMatcher\UrlMatcher as BaseUrlMatcher;
/**
@ -11,6 +14,8 @@ use Symfony\Cmf\Component\Routing\NestedMatcher\UrlMatcher as BaseUrlMatcher;
*/
class UrlMatcher extends BaseUrlMatcher {
public function __construct() {}
public function finalMatch(RouteCollection $collection, Request $request) {
$this->routes = $collection;
$context = new RequestContext();