You are here

public function QueueJobOperator::__construct in Drush Queue Handling 8

CronJobDiscovery constructor.

Parameters

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

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

File

src/QueueJobOperator.php, line 47

Class

QueueJobOperator
Discovery and instantiation of default queue jobs.

Namespace

Drupal\mob_queue

Code

public function __construct(ModuleHandlerInterface $module_handler, QueueFactory $queue_factory, QueueWorkerManagerInterface $queue_manager, ConfigFactoryInterface $config_factory) {
  $this->moduleHandler = $module_handler;
  $this->queueFactory = $queue_factory;
  $this->queueManager = $queue_manager;
  $this->configFactory = $config_factory;
}