class UrlMatcher implements UrlMatcherInterface, RequestMatcherInterface
UrlMatcher matches URL based on a set of routes.
| REQUIREMENT_MATCH | |
| REQUIREMENT_MISMATCH | |
| ROUTE_MATCH |
| __construct(RouteCollection $routes, RequestContext $context) Constructor. | ||
| setContext(RequestContext $context) Sets the request context. | ||
| RequestContext | getContext() Gets the request context. | |
| array | match(string $pathinfo) Tries to match a URL path with a set of routes. | |
| array | matchRequest(Request $request) Tries to match a request with a set of routes. | |
| addExpressionLanguageProvider(ExpressionFunctionProviderInterface $provider) |
Constructor.
Sets the request context.
Gets the request context.
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.
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.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.2/Symfony/Component/Routing/Matcher/UrlMatcher.html