You are here

public function UrlMatcher::setContext in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/routing/Matcher/UrlMatcher.php \Symfony\Component\Routing\Matcher\UrlMatcher::setContext()

Sets the request context.

Parameters

RequestContext $context The context:

Overrides RequestContextAwareInterface::setContext

2 calls to UrlMatcher::setContext()
UrlMatcher::finalMatch in vendor/symfony-cmf/routing/NestedMatcher/UrlMatcher.php
Matches a request against a route collection and returns exactly one result.
UrlMatcher::finalMatch in core/lib/Drupal/Core/Routing/UrlMatcher.php
Matches a request against a route collection and returns exactly one result.

File

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

Class

UrlMatcher
UrlMatcher matches URL based on a set of routes.

Namespace

Symfony\Component\Routing\Matcher

Code

public function setContext(RequestContext $context) {
  $this->context = $context;
}