RequestMatcher

RequestMatcher

class RequestMatcher implements RequestMatcherInterface

RequestMatcher compares a pre-defined set of checks against a Request instance.

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)
matchScheme(string|string[]|null $scheme)

Adds a check for the HTTP scheme.

matchHost(string|null $regexp)

Adds a check for the URL host name.

<