RequestMatcherInterface is the interface that all request matcher classes must implement.
@author Fabien Potencier <fabien@symfony.com>
Expanded class hierarchy of RequestMatcherInterface
All classes that implement RequestMatcherInterface
interface RequestMatcherInterface {
/**
* 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.
*
* @param Request $request The request to match
*
* @return array An array of parameters
*
* @throws ResourceNotFoundException If no matching resource could be found
* @throws MethodNotAllowedException If a matching resource was found but the request method is not allowed
*/
public function matchRequest(Request $request);
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RequestMatcherInterface:: |
public | function | Tries to match a request with a set of routes. | 5 |