class ExpressionRequestMatcher extends RequestMatcher
ExpressionRequestMatcher uses an expression to match a Request.
| __construct(string|null $path = null, string|null $host = null, string|string[]|null $methods = null, string|string[]|null $ips = null, array $attributes = array(), string|string[]|null $schemes = null) | from RequestMatcher | |
| matchScheme(string|string[]|null $scheme) Adds a check for the HTTP scheme. | from RequestMatcher | |
| matchHost(string $regexp) Adds a check for the URL host name. | from RequestMatcher | |
| matchPath(string $regexp) Adds a check for the URL path info. | from RequestMatcher | |
| matchIp(string $ip) Adds a check for the client IP. | from RequestMatcher | |
| matchIps(string|string[] $ips) Adds a check for the client IP. | from RequestMatcher | |
| matchMethod(string|string[] $method) Adds a check for the HTTP method. | from RequestMatcher | |
| matchAttribute(string $key, string $regexp) Adds a check for request attribute. | from RequestMatcher | |
| bool | matches(Request $request) Decides whether the rule(s) implemented by the strategy matches the supplied request. | |
| setExpression(ExpressionLanguage $language, $expression) |
Adds a check for the HTTP scheme.
Adds a check for the URL host name.
Adds a check for the URL path info.
Adds a check for the client IP.
Adds a check for the client IP.
Adds a check for the HTTP method.
Adds a check for request attribute.
Decides whether the rule(s) implemented by the strategy matches the supplied request.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/HttpFoundation/ExpressionRequestMatcher.html