You are here

public function MailgunSanitizeCommands::__construct in Mailgun 8

MailgunSanitizeCommands constructor.

Parameters

\Drupal\Core\Queue\QueueFactory $queueFactory: The queue factory.

File

src/Commands/MailgunSanitizeCommands.php, line 31

Class

MailgunSanitizeCommands
Drush sql-sanitize plugin for sanitizing data in the Mailgun queue.

Namespace

Drupal\mailgun\Commands

Code

public function __construct(QueueFactory $queueFactory) {
  parent::__construct();
  $this->mailgunQueueWorker = $queueFactory
    ->get('mailgun_send_mail');
}