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();