function TrustedHostsRequestFactory::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/Http/TrustedHostsRequestFactory.php \Drupal\Core\Http\TrustedHostsRequestFactory::__construct()
- 10 core/lib/Drupal/Core/Http/TrustedHostsRequestFactory.php \Drupal\Core\Http\TrustedHostsRequestFactory::__construct()
- 11.x 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 35
Class
- TrustedHostsRequestFactory
- Provides a request factory for requests using host verification.
Namespace
Drupal\Core\HttpCode
public function __construct($host) {
$this->host = (string) $host;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.