You are here

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

Simplesitemap constructor.

Parameters

\Drupal\simple_sitemap\Settings $settings:

\Drupal\simple_sitemap\Queue\QueueWorker $queue_worker:

\Drupal\Core\Lock\LockBackendInterface|null $lock:

\Drupal\simple_sitemap\Logger|null $logger:

File

src/Manager/Generator.php, line 50

Class

Generator
Main managing service.

Namespace

Drupal\simple_sitemap\Manager

Code

public function __construct(Settings $settings, QueueWorker $queue_worker, LockBackendInterface $lock = NULL, Logger $logger = NULL) {
  $this->settings = $settings;
  $this->queueWorker = $queue_worker;
  $this->lock = $lock;
  $this->logger = $logger;
}