Symfony\Component\Routing\Matcher\UrlMatcherInterface::match
Tries to match a URL path with a set of routes.
If the matcher can not find information, it must throw one of the exceptions documented below.
Signature
public function match(string
$pathinfo )
Parameters
$pathinfo
— string- The path info to be parsed (raw format, i.e. not urldecoded)
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