You are here

public function MobQueueCommands::__construct in Drush Queue Handling 8

MobQueueCommands constructor.

Parameters

\Drupal\Core\Session\AccountSwitcherInterface $accountSwitcher: Account Switcher.

\Drupal\mob_queue\QueueJobOperator $mobQueueOperator: Mob Queue Operator.

File

src/Commands/MobQueueCommands.php, line 38

Class

MobQueueCommands
The Drush command file for mob_queue.

Namespace

Drupal\mob_queue\Commands

Code

public function __construct(AccountSwitcherInterface $accountSwitcher, QueueJobOperator $mobQueueOperator) {
  $this->accountSwitcher = $accountSwitcher;
  $this->mobQueueOperator = $mobQueueOperator;
}