public function SjApiClient::__construct in Acquia Cloud Site Factory Connector 8.2
Same name and namespace in other branches
- 8 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\ApiCode
public function __construct(RequestStack $request_stack, LoggerInterface $logger) {
$this->domain = $request_stack
->getCurrentRequest()
->getHost();
$this->logger = $logger;
$this->binary = acsf_sj_get_sjadd_path();
}