public function UrlMatcher::__construct

Same name in this branch

Constructor.

@api

Parameters

RouteCollection $routes A RouteCollection instance:

RequestContext $context The context:

4 methods override UrlMatcher::__construct()

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Matcher/UrlMatcher.php, line 56

Class

UrlMatcher
UrlMatcher matches URL based on a set of routes.

Namespace

Symfony\Component\Routing\Matcher

Code

public function __construct(RouteCollection $routes, RequestContext $context) {
  $this->routes = $routes;
  $this->context = $context;
}