You are here

public function RequestMatcher::matchScheme in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/RequestMatcher.php \Symfony\Component\HttpFoundation\RequestMatcher::matchScheme()

Adds a check for the HTTP scheme.

Parameters

string|string[]|null $scheme An HTTP scheme or an array of HTTP schemes:

1 call to RequestMatcher::matchScheme()
RequestMatcher::__construct in vendor/symfony/http-foundation/RequestMatcher.php

File

vendor/symfony/http-foundation/RequestMatcher.php, line 77

Class

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

Namespace

Symfony\Component\HttpFoundation

Code

public function matchScheme($scheme) {
  $this->schemes = array_map('strtolower', (array) $scheme);
}