Symfony\Component\Routing\Matcher\UrlMatcher::matchCollection
Tries to match a URL with a set of routes.
Signature
protected function matchCollection(string
$pathinfo,
RouteCollection
$routes )
Parameters
$pathinfo
— string- The path info to be parsed
$routes
— Symfony\Component\Routing\RouteCollection- The set of routes
Returns
- array
- An array of parameters
Errors/Exceptions
-
ResourceNotFoundException
- If the resource could not be found
-
MethodNotAllowedException
- If the resource was found but the request method is not allowed