Matcher\RedirectableUrlMatcher (Component\Routing)
Symfony\Component\Routing\Matcher\RedirectableUrlMatcher
abstract class RedirectableUrlMatcher extends UrlMatcher implements RedirectableUrlMatcherInterface
Constants
REQUIREMENT_MATCH | |
REQUIREMENT_MISMATCH | |
ROUTE_MATCH |
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. | |
array | matchRequest(Request $request) Tries to match a request with a set of routes. | from UrlMatcher |
addExpressionLanguageProvider(ExpressionFunctionProviderInterface $provider) | from UrlMatcher |
Details
public __construct(RouteCollection $routes, RequestContext $context)
Constructor.
public setContext(RequestContext $context)
Sets the request context.
public RequestContext getContext()
Gets the request context.
public 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.
public 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.
public addExpressionLanguageProvider(ExpressionFunctionProviderInterface $provider)
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Routing/Matcher/RedirectableUrlMatcher.html