$context
$context
Collection of Matcher.
Matcher resolve request into controller::method exemple of Matcher : UrlMatcher of HttpKernel component (but it implements UrlMatcherInterface and not RequestMatcherInterface.
add(\Symfony\Component\Routing\Matcher\RequestMatcherInterface $matcher, int $priority)
allow to add a matcher routing class to the matchers collection matcher must implement RequestMatcherInterface
priority can be fixed with $priority parameter
| \Symfony\Component\Routing\Matcher\RequestMatcherInterface | $matcher | |
| int | $priority | set the priority of the added matcher |
matchRequest(\Symfony\Component\HttpFoundation\Request $request) : array
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.
| \Symfony\Component\HttpFoundation\Request | $request | The request to match |
If no matching resource could be found
If a matching resource was found but the request method is not allowed
An array of parameters