TrustedHostsRequestFactory::__construct

public TrustedHostsRequestFactory::__construct($host)

Creates a new TrustedHostsRequestFactory.

Parameters

string $host: The host of the main request.

File

core/lib/Drupal/Core/Http/TrustedHostsRequestFactory.php, line 35

Class

TrustedHostsRequestFactory
Provides a request factory for requests using host verification.

Namespace

Drupal\Core\Http

Code

public function __construct($host) {
  $this->host = (string) $host;
}
doc_Drupal
2016-10-29 09:49:34
Comments
Leave a Comment

Please login to continue.