diff --git a/core/lib/Drupal/Core/Routing/UrlMatcher.php b/core/lib/Drupal/Core/Routing/UrlMatcher.php new file mode 100644 index 00000000000..2237bca6076 --- /dev/null +++ b/core/lib/Drupal/Core/Routing/UrlMatcher.php @@ -0,0 +1,22 @@ +routes = $collection; + $context = new RequestContext(); + $context->fromRequest($request); + $this->setContext($context); + return $this->match($request->attributes->get('system_path')); + } + +}