function Router::matchRequest
Same name in this branch
- 11.1.x core/lib/Drupal/Core/Routing/Router.php \Drupal\Core\Routing\Router::matchRequest()
Overrides RequestMatcherInterface::matchRequest
File
-
vendor/
symfony/ routing/ Router.php, line 180
Class
- Router
- The Router class is an example of the integration of all pieces of the routing system for easier use.
Namespace
Symfony\Component\RoutingCode
public function matchRequest(Request $request) : array {
$matcher = $this->getMatcher();
if (!$matcher instanceof RequestMatcherInterface) {
// fallback to the default UrlMatcherInterface
return $matcher->match($request->getPathInfo());
}
return $matcher->matchRequest($request);
}