You are here

public function SendinblueHttpClient::__construct in SendinBlue 7.2

SendinblueHttpClient constructor.

Parameters

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: LoggerChannelFactory.

\GuzzleHttp\ClientInterface $http_client: ClientInterface.

File

includes/Http/SendinblueHttpClient.php, line 43

Class

SendinblueHttpClient
Sendinblue REST client.

Code

public function __construct() {
  if (!function_exists('curl_init')) {
    $msg = 'SendinBlue requires CURL module';
    $logger_factory
      ->get('sendinblue')
      ->error($msg);
    return;
  }
}