You are here

public function UrlMatcher::__construct in Zircon Profile 8

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

Constructor.

Parameters

RouteCollection $routes A RouteCollection instance:

RequestContext $context The context:

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

File

vendor/symfony/routing/Matcher/UrlMatcher.php, line 63

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