function RequestMatcherInterface::matchRequest
Tries to match a request with a set of routes.
If the matcher cannot find information, it must throw one of the exceptions documented below.
Throws
NoConfigurationException If no routing configuration could be found
ResourceNotFoundException If no matching resource could be found
MethodNotAllowedException If a matching resource was found but the request method is not allowed
3 methods override RequestMatcherInterface::matchRequest()
- AccessAwareRouterInterface::matchRequest in core/
lib/ Drupal/ Core/ Routing/ AccessAwareRouterInterface.php - Router::matchRequest in vendor/
symfony/ routing/ Router.php - Tries to match a request with a set of routes.
- UrlMatcher::matchRequest in vendor/
symfony/ routing/ Matcher/ UrlMatcher.php - Tries to match a request with a set of routes.
File
-
vendor/
symfony/ routing/ Matcher/ RequestMatcherInterface.php, line 36
Class
- RequestMatcherInterface
- RequestMatcherInterface is the interface that all request matcher classes must implement.
Namespace
Symfony\Component\Routing\MatcherCode
public function matchRequest(Request $request) : array;