You are here

public function QueueWorker::__construct in Simple XML sitemap 8.3

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

QueueWorker constructor.

Parameters

\Drupal\simple_sitemap\SimplesitemapSettings $settings:

\Drupal\simple_sitemap\SimplesitemapManager $manager:

\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\Lock\LockBackendInterface $lock:

File

src/Queue/QueueWorker.php, line 117

Class

QueueWorker

Namespace

Drupal\simple_sitemap\Queue

Code

public function __construct(SimplesitemapSettings $settings, SimplesitemapManager $manager, StateInterface $state, SimplesitemapQueue $element_queue, Logger $logger, ModuleHandlerInterface $module_handler, LockBackendInterface $lock) {
  $this->settings = $settings;
  $this->manager = $manager;
  $this->state = $state;
  $this->queue = $element_queue;
  $this->logger = $logger;
  $this->moduleHandler = $module_handler;
  $this->lock = $lock;
}