public function HttpClientWrapper::__construct in Salesforce Suite 5.0.x
Same name and namespace in other branches
- 8.4 src/Client/HttpClientWrapper.php \Drupal\salesforce\Client\HttpClientWrapper::__construct()
- 8.3 src/Client/HttpClientWrapper.php \Drupal\salesforce\Client\HttpClientWrapper::__construct()
HttpClientWrapper constructor.
Parameters
\GuzzleHttp\ClientInterface $httpClient: Guzzle HTTP client service, from core http_client.
File
- src/
Client/ HttpClientWrapper.php, line 27
Class
- HttpClientWrapper
- Wraps Guzzle HTTP client for an OAuth ClientInterface.
Namespace
Drupal\salesforce\ClientCode
public function __construct(GuzzleClientInterface $httpClient) {
$this->httpClient = $httpClient;
}