You are here

public function ClientFactory::__construct in Zircon Profile 8

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

Constructs a new ClientFactory instance.

Parameters

\GuzzleHttp\HandlerStack $stack: The handler stack.

File

core/lib/Drupal/Core/Http/ClientFactory.php, line 33
Contains \Drupal\Core\Http\ClientFactory.

Class

ClientFactory
Helper class to construct a HTTP client with Drupal specific config.

Namespace

Drupal\Core\Http

Code

public function __construct(HandlerStack $stack) {
  $this->stack = $stack;
}