You are here

public function MandrillAPI::__construct in Mandrill 8

Constructs the service.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory:

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

File

src/MandrillAPI.php, line 33

Class

MandrillAPI
Service class to integrate with Mandrill.

Namespace

Drupal\mandrill

Code

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