You are here

public function FinalMatcherInterface::finalMatch in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony-cmf/routing/NestedMatcher/FinalMatcherInterface.php \Symfony\Cmf\Component\Routing\NestedMatcher\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 vendor/symfony-cmf/routing/NestedMatcher/UrlMatcher.php
Matches a request against a route collection and returns exactly one result.

File

vendor/symfony-cmf/routing/NestedMatcher/FinalMatcherInterface.php, line 37

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);