You are here

public function AcquiaSearchApiClient::__construct in Acquia Search 3.x

AcquiaSearchApiClient constructor.

Parameters

array $auth_info: Authorization array.

\GuzzleHttp\Client $http_client: HTTP client.

\Drupal\Core\Cache\CacheBackendInterface $cache: Cache backend.

File

src/AcquiaSearchApiClient.php, line 59

Class

AcquiaSearchApiClient
Acquia implementation of the Search API Client.

Namespace

Drupal\acquia_search

Code

public function __construct(array $auth_info, Client $http_client, CacheBackendInterface $cache) {
  $this->authInfo = $auth_info;
  $this->client = $http_client;
  $this->cache = $cache;
}