You are here

public function SjApiClient::__construct in Acquia Cloud Site Factory Connector 8

Same name and namespace in other branches
  1. 8.2 acsf_sj/src/Api/SjApiClient.php \Drupal\acsf_sj\Api\SjApiClient::__construct()

Constructs the ACSF SJ Client.

Parameters

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

\Psr\Log\LoggerInterface $logger: A logger instance.

File

acsf_sj/src/Api/SjApiClient.php, line 44

Class

SjApiClient
Provides a Scheduled Jobs API client.

Namespace

Drupal\acsf_sj\Api

Code

public function __construct(RequestStack $request_stack, LoggerInterface $logger) {
  $this->domain = $request_stack
    ->getCurrentRequest()
    ->getHost();
  $this->logger = $logger;
  $this->binary = acsf_sj_get_sjadd_path();
}