You are here

public function MandrillService::__construct in Mandrill 8

Constructs the service.

Parameters

\Drupal\mandrill\MandrillAPIInterface $mandrill_api: The Mandrill API service.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The Config Factory service.

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

File

src/MandrillService.php, line 43

Class

MandrillService
Mandrill Service.

Namespace

Drupal\mandrill

Code

public function __construct(MandrillAPIInterface $mandrill_api, ConfigFactoryInterface $config_factory, LoggerChannelFactoryInterface $logger_factory) {
  $this->mandrill_api = $mandrill_api;
  $this->config = $config_factory;
  $this->log = $logger_factory
    ->get('mandrill');
}