You are here

public function HttpClientTrait::setHttpClient in Remote Stream Wrapper 8

Sets the HTTP client.

Parameters

\GuzzleHttp\ClientInterface $httpClient: An HTTP client.

File

src/HttpClientTrait.php, line 27

Class

HttpClientTrait
Trait to help reuse HTTP client logic.

Namespace

Drupal\remote_stream_wrapper

Code

public function setHttpClient(ClientInterface $httpClient) {
  $this->httpClient = $httpClient;
}