/** * 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); }); }
/** * Set the options on the queue listener. * * @return void */ protected function setListenerOptions() { $this->listener->setEnvironment($this->laravel->environment()); $this->listener->setSleep($this->option('sleep')); }