You are here

public function TimeoutAwarePsr18Adapter::__construct in Acquia Search 3.x

Same name and namespace in other branches
  1. 2.x src/Client/Adapter/TimeoutAwarePsr18Adapter.php \Drupal\acquia_search\Client\Adapter\TimeoutAwarePsr18Adapter::__construct()

Constructor of TimeoutAwarePsr18Adapter.

Parameters

\Psr\Http\Client\ClientInterface $httpClient: Guzzle HTTP Client.

File

src/Client/Adapter/TimeoutAwarePsr18Adapter.php, line 40

Class

TimeoutAwarePsr18Adapter
Psr18 Adapter that implements TimeoutAwareInterface.

Namespace

Drupal\acquia_search\Client\Adapter

Code

public function __construct(ClientInterface $httpClient) {
  $this->psr18Adapter = new Psr18Adapter($httpClient, new RequestFactory(), new StreamFactory());
}