You are here

public function RequestMatcherInterface::matchRequest in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/Matcher/RequestMatcherInterface.php \Symfony\Component\Routing\Matcher\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

7 methods override RequestMatcherInterface::matchRequest()
AccessAwareRouterInterface::matchRequest in core/lib/Drupal/Core/Routing/AccessAwareRouterInterface.php
ChainRouter::matchRequest in vendor/symfony-cmf/routing/ChainRouter.php
Loops through all routes and tries to match the passed request.
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.
MockMatcher::matchRequest in core/modules/system/src/Tests/Routing/MockMatcher.php
Tries to match a request with a set of routes.
NestedMatcher::matchRequest in vendor/symfony-cmf/routing/NestedMatcher/NestedMatcher.php
Tries to match a request with a set of routes.

... See full list

File

vendor/symfony/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);