class TraceableUrlMatcher extends UrlMatcher
TraceableUrlMatcher helps debug path info matching by tracing the match.
Constants
| REQUIREMENT_MATCH | |
| REQUIREMENT_MISMATCH | |
| ROUTE_MATCH | |
| ROUTE_DOES_NOT_MATCH | |
| ROUTE_ALMOST_MATCHES | |
| ROUTE_MATCHES |
Methods
| __construct(RouteCollection $routes, RequestContext $context) Constructor. | from UrlMatcher | |
| setContext(RequestContext $context) Sets the request context. | from UrlMatcher | |
| RequestContext | getContext() Gets the request context. | from UrlMatcher |
| array | match(string $pathinfo) Tries to match a URL path with a set of routes. | from UrlMatcher |
| array | matchRequest(Request $request) Tries to match a request with a set of routes. | from UrlMatcher |
| addExpressionLanguageProvider(ExpressionFunctionProviderInterface $provider) | from UrlMatcher | |
| getTraces($pathinfo) | ||
| getTracesForRequest(Request $request) |
Details
__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.
If the matcher can not find information, it must throw one of the exceptions documented below.
array matchRequest(Request $request)
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.
Please login to continue.