You are here

public function Subscribers::__construct in Message Subscribe 8

Construct the service.

Parameters

\Drupal\flag\FlagServiceInterface $flag_service: The flag manager service.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory service.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service.

\Drupal\message_notify\MessageNotifier $message_notifier: The message notification service.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.

\Drupal\Core\Queue\QueueFactory $queue: The queue service.

File

src/Subscribers.php, line 107

Class

Subscribers
A message subscribers service.

Namespace

Drupal\message_subscribe

Code

public function __construct(FlagServiceInterface $flag_service, ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, MessageNotifier $message_notifier, ModuleHandlerInterface $module_handler, QueueFactory $queue) {
  $this->config = $config_factory
    ->get('message_subscribe.settings');
  $this->entityTypeManager = $entity_type_manager;
  $this->flagService = $flag_service;
  $this->messageNotifier = $message_notifier;
  $this->moduleHandler = $module_handler;
  $this->queue = $queue
    ->get('message_subscribe');
  $this->debug = $this->config
    ->get('debug_mode');
}