function SchemeRequestMatcher::__construct
Parameters
string[]|string $schemes A scheme or a list of schemes: Strings can contain a comma-delimited list of schemes
File
-
vendor/
symfony/ http-foundation/ RequestMatcher/ SchemeRequestMatcher.php, line 33
Class
- SchemeRequestMatcher
- Checks the HTTP scheme of a Request.
Namespace
Symfony\Component\HttpFoundation\RequestMatcherCode
public function __construct(array|string $schemes) {
$this->schemes = array_reduce(array_map('strtolower', (array) $schemes), static fn(array $schemes, string $scheme) => array_merge($schemes, preg_split('/\\s*,\\s*/', $scheme)), []);
}