public function DynamicRouter::getMatcher in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony-cmf/routing/DynamicRouter.php \Symfony\Cmf\Component\Routing\DynamicRouter::getMatcher()
Return value
RequestMatcherInterface|UrlMatcherInterface
2 calls to DynamicRouter::getMatcher()
- DynamicRouter::match in vendor/
symfony-cmf/ routing/ DynamicRouter.php - Tries to match a URL path with a set of routes.
- DynamicRouter::matchRequest in vendor/
symfony-cmf/ routing/ DynamicRouter.php - Tries to match a request with a set of routes and returns the array of information for that route.
File
- vendor/
symfony-cmf/ routing/ DynamicRouter.php, line 127
Class
- DynamicRouter
- A flexible router accepting matcher and generator through injection and using the RouteEnhancer concept to generate additional data on the routes.
Namespace
Symfony\Cmf\Component\RoutingCode
public function getMatcher() {
/* we may not set the context in DynamicRouter::setContext as this
* would lead to symfony cache warmup problems.
* a request matcher does not need the request context separately as it
* can get it from the request.
*/
if ($this->matcher instanceof RequestContextAwareInterface) {
$this->matcher
->setContext($this
->getContext());
}
return $this->matcher;
}