public function TimeoutAwarePsr18Adapter::__construct in Acquia Search 2.x
Same name and namespace in other branches
- 3.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\AdapterCode
public function __construct(ClientInterface $httpClient) {
$this->psr18Adapter = new Psr18Adapter($httpClient, new RequestFactory(), new StreamFactory());
}