Exemple #1
0
 /**
  * Set the options on the queue listener.
  *
  * @return void
  */
 protected function setListenerOptions()
 {
     $this->listener->setEnvironment($this->laravel->environment());
     $this->listener->setSleep($this->option('sleep'));
     $this->listener->setMaxTries($this->option('tries'));
     $this->listener->setOutputHandler(function ($type, $line) {
         $this->output->write($line);
     });
 }
Exemple #2
0
 /**
  * Set the options on the queue listener.
  *
  * @return void
  */
 protected function setListenerOptions()
 {
     $this->listener->setEnvironment($this->laravel->environment());
     $this->listener->setSleep($this->option('sleep'));
 }