TraceableUrlMatcher
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 |
|
Properties
protected | $context | from UrlMatcher | |
protected | $allow | Collects HTTP methods that would be allowed for the request. | from UrlMatcher |
protected | $allowSchemes | Collects URI schemes that would be allowed for the request. | from UrlMatcher |
protected | $routes | from UrlMatcher | |
protected | $request | from UrlMatcher | |
protected | $expressionLanguage | from UrlMatcher | |
protected ExpressionFunctionProviderInterface[] | $expressionLanguageProviders | from UrlMatcher | |
protected | $traces |
Methods
Tries to match a URL with a set of routes.
Returns an array of values to use as request attributes.
Handles specific route requirements.
No description
Details
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.
protected array
matchCollection(string $pathinfo, RouteCollection $routes)
Tries to match a URL with a set of routes.
protected array
getAttributes(Route $route, string $name, array $attributes)
Returns an array of values to use as request attributes.
As this method requires the Route object, it is not available in matchers that do not have access to the matched Route instance (like the PHP and Apache matcher dumpers).
protected array
handleRouteRequirements(string $pathinfo, string $name, Route $route)
Handles specific route requirements.