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_wrapperCode
public function setHttpClient(ClientInterface $httpClient) {
$this->httpClient = $httpClient;
}