function ClientFactory::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/Http/ClientFactory.php \Drupal\Core\Http\ClientFactory::__construct()
  2. 10 core/lib/Drupal/Core/Http/ClientFactory.php \Drupal\Core\Http\ClientFactory::__construct()
  3. 11.x 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 28

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.