protected function HttpClient::getClient in HTTP Client Manager 8.2
Same name and namespace in other branches
- 8 src/HttpClient.php \Drupal\http_client_manager\HttpClient::getClient()
Get Client.
Return value
\GuzzleHttp\Command\Guzzle\GuzzleClient The Configured Guzzle client instance.
1 call to HttpClient::getClient()
- HttpClient::getClientByCommand in src/
HttpClient.php - Get Client by Command.
File
- src/
HttpClient.php, line 147
Class
- HttpClient
- The http client.
Namespace
Drupal\http_client_managerCode
protected function getClient() {
if (empty($this->client)) {
$this
->setupGuzzleClient();
}
return $this->client;
}