class RedirectableUrlMatcher extends RedirectableUrlMatcher
| REQUIREMENT_MATCH | |
| REQUIREMENT_MISMATCH | |
| ROUTE_MATCH |
| __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 RedirectableUrlMatcher |
| array | matchRequest(Request $request) Tries to match a request with a set of routes. | from UrlMatcher |
| addExpressionLanguageProvider(ExpressionFunctionProviderInterface $provider) | from UrlMatcher | |
| array | redirect(string $path, string $route, string|null $scheme = null) Redirects the user to another URL. |
Constructor.
| RouteCollection | $routes | A RouteCollection instance |
| RequestContext | $context | The context |
Sets the request context.
| RequestContext | $context | The context |
Gets the request context.
| RequestContext | The 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.
| string | $pathinfo | The path info to be parsed (raw format, i.e. not urldecoded) |
| array | An array of parameters |
| ResourceNotFoundException | If the resource could not be found |
| MethodNotAllowedException | If the resource was found but the request method is not allowed |
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.
| Request | $request | The request to match |
| array | An array of parameters |
| ResourceNotFoundException | If no matching resource could be found |
| MethodNotAllowedException | If a matching resource was found but the request method is not allowed |
| ExpressionFunctionProviderInterface | $provider |
Redirects the user to another URL.
| string | $path | The path info to redirect to |
| string | $route | The route name that matched |
| string|null | $scheme | The URL scheme (null to keep the current one) |
| array | An array of parameters |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Bundle/FrameworkBundle/Routing/RedirectableUrlMatcher.html