public function UrlMatcher::__construct

Same name in this branch
  1. 8.x drupal/core/lib/Drupal/Core/Routing/UrlMatcher.php \Drupal\Core\Routing\UrlMatcher::__construct()
  2. 8.x drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Matcher/UrlMatcher.php \Symfony\Component\Routing\Matcher\UrlMatcher::__construct()

Constructor.

@api

Parameters

RouteCollection $routes A RouteCollection instance:

RequestContext $context The context:

4 methods override UrlMatcher::__construct()
ProjectUrlMatcher::__construct in drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Tests/Fixtures/dumper/url_matcher3.php
Constructor.
ProjectUrlMatcher::__construct in drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Tests/Fixtures/dumper/url_matcher2.php
Constructor.
ProjectUrlMatcher::__construct in drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Tests/Fixtures/dumper/url_matcher1.php
Constructor.
UrlMatcher::__construct in drupal/core/lib/Drupal/Core/Routing/UrlMatcher.php
Constructs a new UrlMatcher.

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;
}