You are here

public function QueueWorker::__construct in Simple XML sitemap 4.x

Same name and namespace in other branches
  1. 8.3 src/Queue/QueueWorker.php \Drupal\simple_sitemap\Queue\QueueWorker::__construct()

QueueWorker constructor.

Parameters

\Drupal\simple_sitemap\Settings $settings:

\Drupal\Core\State\StateInterface $state:

\Drupal\simple_sitemap\Queue\SimpleSitemapQueue $element_queue:

\Drupal\simple_sitemap\Logger $logger:

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler:

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager:

\Drupal\Core\Lock\LockBackendInterface $lock:

File

src/Queue/QueueWorker.php, line 113

Class

QueueWorker

Namespace

Drupal\simple_sitemap\Queue

Code

public function __construct(Settings $settings, StateInterface $state, SimpleSitemapQueue $element_queue, Logger $logger, ModuleHandlerInterface $module_handler, EntityTypeManagerInterface $entity_type_manager, LockBackendInterface $lock) {
  $this->settings = $settings;
  $this->state = $state;
  $this->queue = $element_queue;
  $this->logger = $logger;
  $this->moduleHandler = $module_handler;
  $this->entityTypeManager = $entity_type_manager;
  $this->lock = $lock;
}