You are here

public function WorkbenchEmailProcessor::__construct in Workbench Email 8

Same name in this branch
  1. 8 src/WorkbenchEmailProcessor.php \Drupal\workbench_email\WorkbenchEmailProcessor::__construct()
  2. 8 src/Plugin/QueueWorker/WorkbenchEmailProcessor.php \Drupal\workbench_email\Plugin\QueueWorker\WorkbenchEmailProcessor::__construct()
Same name and namespace in other branches
  1. 2.x src/WorkbenchEmailProcessor.php \Drupal\workbench_email\WorkbenchEmailProcessor::__construct()

Constructs a WorkbencEmailProcessor object.

Parameters

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

\Drupal\Core\Queue\QueueWorkerManagerInterface $queue_manager: The queue plugin manager.

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

File

src/WorkbenchEmailProcessor.php, line 54

Class

WorkbenchEmailProcessor
Defines a class for processing a queue for a given entity ID.

Namespace

Drupal\workbench_email

Code

public function __construct(QueueFactory $queue_factory, QueueWorkerManagerInterface $queue_manager, LoggerChannelFactoryInterface $logger_factory) {
  $this->queueFactory = $queue_factory;
  $this->queueManager = $queue_manager;
  $this->logger = $logger_factory
    ->get('workbench_email');
}