class ExpressionRequestMatcher extends RequestMatcher
ExpressionRequestMatcher uses an expression to match a Request.
| __construct(string $path = null, string $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|null $regexp) Adds a check for the URL host name. | from RequestMatcher | |
| matchPath(string|null $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[]|null $ips) Adds a check for the client IP. | from RequestMatcher | |
| matchMethod(string|string[]|null $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) |
| string | $path | |
| string | $host | |
| string|string[]|null | $methods | |
| string|string[]|null | $ips | |
| array | $attributes | |
| string|string[]|null | $schemes |
Adds a check for the HTTP scheme.
| string|string[]|null | $scheme | An HTTP scheme or an array of HTTP schemes |
Adds a check for the URL host name.
| string|null | $regexp | A Regexp |
Adds a check for the URL path info.
| string|null | $regexp | A Regexp |
Adds a check for the client IP.
| string | $ip | A specific IP address or a range specified using IP/netmask like 192.168.1.0/24 |
Adds a check for the client IP.
| string|string[]|null | $ips | A specific IP address or a range specified using IP/netmask like 192.168.1.0/24 |
Adds a check for the HTTP method.
| string|string[]|null | $method | An HTTP method or an array of HTTP methods |
Adds a check for request attribute.
| string | $key | The request attribute name |
| string | $regexp | A Regexp |
Decides whether the rule(s) implemented by the strategy matches the supplied request.
| Request | $request |
| bool | true if the request matches, false otherwise |
| ExpressionLanguage | $language | |
| $expression |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/HttpFoundation/ExpressionRequestMatcher.html