ExpressionRequestMatcher
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)
No description
from RequestMatcher
bool
Details
in RequestMatcher at line line 61
__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)
in RequestMatcher at line line 79
matchScheme(string|string[]|null $scheme)
Adds a check for the HTTP scheme.
in RequestMatcher at line line 89
matchHost(string $regexp)
Adds a check for the URL host name.
in RequestMatcher at line line 99
matchPath(string $regexp)
Adds a check for the URL path info.
in RequestMatcher at line line 109
matchIp(string $ip)
Adds a check for the client IP.
in RequestMatcher at line line 119
matchIps(string|string[] $ips)
Adds a check for the client IP.
in RequestMatcher at line line 129
matchMethod(string|string[] $method)
Adds a check for the HTTP method.
in RequestMatcher at line line 140
matchAttribute(string $key, string $regexp)
Adds a check for request attribute.
at line line 32
bool
matches(Request $request)
Decides whether the rule(s) implemented by the strategy matches the supplied request.