You are here

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

Same name and namespace in other branches
  1. 8.3 modules/simple_sitemap_engines/src/Plugin/QueueWorker/SitemapSubmitter.php \Drupal\simple_sitemap_engines\Plugin\QueueWorker\SitemapSubmitter::__construct()

SitemapSubmitter constructor.

Parameters

array $configuration: The config.

string $plugin_id: The plugin id.

array $plugin_definition: The plugin definition.

\GuzzleHttp\ClientInterface $http_client: The client used to submit to engines.

\Drupal\simple_sitemap\Manager\Generator $generator: The generator service.

\Drupal\simple_sitemap\Logger $logger: Standard logger.

\Drupal\Core\State\StateInterface $state: Drupal state service for last submitted.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

Overrides PluginBase::__construct

File

modules/simple_sitemap_engines/src/Plugin/QueueWorker/SitemapSubmitter.php, line 85

Class

SitemapSubmitter
Process a queue of search engines to submit sitemaps.

Namespace

Drupal\simple_sitemap_engines\Plugin\QueueWorker

Code

public function __construct(array $configuration, $plugin_id, array $plugin_definition, ClientInterface $http_client, Generator $generator, Logger $logger, StateInterface $state, TimeInterface $time) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->httpClient = $http_client;
  $this->generator = $generator;
  $this->logger = $logger;
  $this->state = $state;
  $this->time = $time;
}