public function CourierManager::__construct in Courier 8
Same name and namespace in other branches
- 2.x src/Service/CourierManager.php \Drupal\courier\Service\CourierManager::__construct()
Constructs the Courier Manager.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.
\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The logger factory service.
\Drupal\courier\Service\IdentityChannelManagerInterface $identity_channel_manager: The identity channel manager.
\Drupal\courier\Service\MessageQueueManagerInterface $message_queue: The message queue service.
File
- src/
Service/ CourierManager.php, line 67
Class
- CourierManager
- The courier manager.
Namespace
Drupal\courier\ServiceCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, ConfigFactoryInterface $config_factory, LoggerChannelFactoryInterface $logger_factory, IdentityChannelManagerInterface $identity_channel_manager, MessageQueueManagerInterface $message_queue) {
$this->entityTypeManager = $entity_type_manager;
$this->configFactory = $config_factory;
$this->logger = $logger_factory
->get('courier');
$this->identityChannelManager = $identity_channel_manager;
$this->messageQueue = $message_queue;
}