You are here

public function HttpClientWrapper::__construct in Salesforce Suite 8.3

Same name and namespace in other branches
  1. 8.4 src/Client/HttpClientWrapper.php \Drupal\salesforce\Client\HttpClientWrapper::__construct()
  2. 5.0.x 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\Client

Code

public function __construct(GuzzleClientInterface $httpClient) {
  $this->httpClient = $httpClient;
}