You are here

public function TrustedHostsRequestFactory::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Http/TrustedHostsRequestFactory.php \Drupal\Core\Http\TrustedHostsRequestFactory::__construct()

Creates a new TrustedHostsRequestFactory.

Parameters

string $host: The host of the main request.

File

core/lib/Drupal/Core/Http/TrustedHostsRequestFactory.php, line 40
Contains \Drupal\Core\Http\TrustedHostsRequestFactory.

Class

TrustedHostsRequestFactory
Provides a request factory for requests using host verification.

Namespace

Drupal\Core\Http

Code

public function __construct($host) {
  $this->host = (string) $host;
}