public function RequestMatcherInterface::matchRequest

Tries to match a request with a set of routes.

If the matcher can not find information, it must throw one of the exceptions documented below.

Parameters

Request $request The request to match:

Return value

array An array of parameters

Throws

ResourceNotFoundException If no matching resource could be found

MethodNotAllowedException If a matching resource was found but the request method is not allowed

5 methods override RequestMatcherInterface::matchRequest()
ChainRouter::matchRequest in drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/ChainRouter.php
Loops through all routes and tries to match the passed request.
DynamicRouter::matchRequest in drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/DynamicRouter.php
Tries to match a request with a set of routes and returns the array of information for that route.
LegacyUrlMatcher::matchRequest in drupal/core/lib/Drupal/Core/LegacyUrlMatcher.php
@api
MockMatcher::matchRequest in drupal/core/modules/system/lib/Drupal/system/Tests/Routing/MockMatcher.php
Implements \Symfony\Component\Routing\Matcher\RequestMatcherInterface::matchRequest().
NestedMatcher::matchRequest in drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/NestedMatcher/NestedMatcher.php
Tries to match a request with a set of routes.

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Matcher/RequestMatcherInterface.php, line 38

Class

RequestMatcherInterface
RequestMatcherInterface is the interface that all request matcher classes must implement.

Namespace

Symfony\Component\Routing\Matcher

Code

public function matchRequest(Request $request);