public function ClientFactory::__construct

public ClientFactory::__construct(HandlerStack $stack)

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Http!ClientFactory.php/function/ClientFactory::__construct/8.1.x