class ExpressionRequestMatcher extends RequestMatcher
ExpressionRequestMatcher uses an expression to match a Request.
Methods
__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) |
Details
__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)
matchScheme(string|string[]|null $scheme)
Adds a check for the HTTP scheme.
matchHost(string $regexp)
Adds a check for the URL host name.
matchPath(string $regexp)
Adds a check for the URL path info.
matchIp(string $ip)
Adds a check for the client IP.
matchIps(string|string[] $ips)
Adds a check for the client IP.
matchMethod(string|string[] $method)
Adds a check for the HTTP method.
matchAttribute(string $key, string $regexp)
Adds a check for request attribute.
bool matches(Request $request)
Decides whether the rule(s) implemented by the strategy matches the supplied request.
Please login to continue.