You are here

function MessageQueueManager::__construct in Courier 8

Same name and namespace in other branches
  1. 2.x src/Service/MessageQueueManager.php \Drupal\courier\Service\MessageQueueManager::__construct()

Constructs a message queue manager.

Parameters

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The logger factory service.

\Drupal\courier\Service\IdentityChannelManagerInterface $identity_channel_manager: The identity channel manager.

File

src/Service/MessageQueueManager.php, line 35

Class

MessageQueueManager
The message queue manager.

Namespace

Drupal\courier\Service

Code

function __construct(LoggerChannelFactoryInterface $logger_factory, IdentityChannelManagerInterface $identity_channel_manager) {
  $this->logger = $logger_factory
    ->get('courier');
  $this->identityChannelManager = $identity_channel_manager;
}