You are here

public function WarmerCommands::__construct in Warmer 8

Same name and namespace in other branches
  1. 2.x src/Commands/WarmerCommands.php \Drupal\warmer\Commands\WarmerCommands::__construct()

WarmerCommands constructor.

Parameters

\Drupal\warmer\Plugin\WarmerPluginManager $warmer_manager: The warmer manager.

\Drupal\warmer\QueueManager $queue_manager: The queue manager.

\Drush\Drupal\Commands\core\QueueCommands $queue_commands: The service related to queue commands.

File

src/Commands/WarmerCommands.php, line 54

Class

WarmerCommands
Drush commands for the Warmer module.

Namespace

Drupal\warmer\Commands

Code

public function __construct(WarmerPluginManager $warmer_manager, QueueManager $queue_manager, QueueCommands $queue_commands) {
  parent::__construct();
  $this->warmerManager = $warmer_manager;
  $this->queueManager = $queue_manager;
  $this->queueCommands = $queue_commands;
}