public function FinalMatcherInterface::finalMatch

Matches a request against a route collection and returns exactly one result.

Parameters

RouteCollection $collection The collection against which to match.:

Request $request The request to match.:

Return value

array An array of parameters

Throws

ResourceNotFoundException if none of the routes in $collection matches $request

1 method overrides FinalMatcherInterface::finalMatch()
UrlMatcher::finalMatch in drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/NestedMatcher/UrlMatcher.php
Matches a request against a route collection and returns exactly one result.

File

drupal/core/vendor/symfony-cmf/routing/Symfony/Cmf/Component/Routing/NestedMatcher/FinalMatcherInterface.php, line 28

Class

FinalMatcherInterface
A FinalMatcher returns only one route from a collection of candidate routes.

Namespace

Symfony\Cmf\Component\Routing\NestedMatcher

Code

public function finalMatch(RouteCollection $collection, Request $request);