/**
  * Add swift mailer spool send task to job queue if it has not been added earlier
  *
  * @param string $command
  * @param array  $commandArgs
  *
  * @return Job
  */
 protected function createJob($command, $commandArgs = [])
 {
     $commandArgs = array_merge(['--message-limit=' . $this->messageLimit, '--env=' . $this->env, '--mailer=db_spool_mailer'], $commandArgs);
     return parent::createJob($command, $commandArgs);
 }
 /**
  * Add swift mailer spool send task to job queue if it has not been added earlier
  *
  * @param string $command
  * @param array  $commandArgs
  * @param bool $needFlush
  * @return boolean|integer
  */
 protected function addJob($command, $commandArgs = array(), $needFlush = false)
 {
     $commandArgs = array_merge(array('--message-limit=' . $this->messageLimit, '--env=' . $this->env, '--mailer=db_spool_mailer'), $commandArgs);
     if ($this->env == 'prod') {
         $commandArgs[] = '--no-debug';
     }
     return parent::addJob($command, $commandArgs, $needFlush);
 }