From 35230f21ec905528f6c9c0848564611af1a0e121 Mon Sep 17 00:00:00 2001 From: Larry Garfield Date: Mon, 24 Dec 2012 18:38:10 -0600 Subject: [PATCH] Our UrlMatcher has no need for the constructor parameters, so eliminate them entirely to simplify matters. --- core/lib/Drupal/Core/Routing/UrlMatcher.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/lib/Drupal/Core/Routing/UrlMatcher.php b/core/lib/Drupal/Core/Routing/UrlMatcher.php index 2237bca6076..dec8c006c2f 100644 --- a/core/lib/Drupal/Core/Routing/UrlMatcher.php +++ b/core/lib/Drupal/Core/Routing/UrlMatcher.php @@ -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();