You are here

public function ProjectVersionClient::__construct in Acquia Content Hub 8.2

ProjectVersionClient constructor.

Parameters

\GuzzleHttp\ClientInterface $http_client: A Guzzle client object.

\Drupal\Core\Logger\LoggerChannelInterface $logger_channel: The logger factory.

File

src/Client/ProjectVersionClient.php, line 45

Class

ProjectVersionClient
Project version client to get latest releases for a project from D.O.

Namespace

Drupal\acquia_contenthub\Client

Code

public function __construct(ClientInterface $http_client, LoggerChannelInterface $logger_channel) {
  $this->httpClient = $http_client;
  $this->achLoggerChannel = $logger_channel;
}