You are here

public function TomeStaticQueueWorker::__construct in Tome 8

Constructs a new class instance.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\tome_static\StaticGeneratorInterface $static: The static generator.

\Drupal\tome_static\RequestPreparer $request_preparer: The request preparer.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

\Drupal\Core\State\StateInterface $state: The state system.

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The logger.

Overrides PluginBase::__construct

File

modules/tome_static/modules/tome_static_cron/src/Plugin/QueueWorker/TomeStaticQueueWorker.php, line 93

Class

TomeStaticQueueWorker
Process a queue of static paths.

Namespace

Drupal\tome_static_cron\Plugin\QueueWorker

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, StaticGeneratorInterface $static, RequestPreparer $request_preparer, RequestStack $request_stack, StateInterface $state, LoggerChannelFactoryInterface $logger_factory) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->static = $static;
  $this->requestPreparer = $request_preparer;
  $this->currentRequest = $request_stack
    ->getCurrentRequest();
  $this->state = $state;
  $this->logger = $logger_factory
    ->get('tome_static_cron');
}