You are here

public function LockrClient::__construct in Lockr 7.3

Parameters

GuzzleHttp\ClientInterface $http_client:

File

vendor/lockr/lockr/src/LockrClient.php, line 25

Class

LockrClient

Namespace

Lockr

Code

public function __construct(GuzzleHttp\ClientInterface $http_client, LockrStatsInterface $stats = null) {
  $this->httpClient = $http_client;
  $this->stats = $stats ?: new BlackholeStats();
  $this->hasCert = (bool) $http_client
    ->getConfig('cert');
}