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.
Signature
public function matchRequest(Request
$request )
Parameters
$request
— Symfony\Component\HttpFoundation\Request- The request to match
Returns
- array
- An array of parameters
Errors/Exceptions
-
ResourceNotFoundException
- If no matching resource could be found
-
MethodNotAllowedException
- If a matching resource was found but the request method is not allowed