/**
  * Run the worker instance.
  *
  * @param  string  $connection
  * @param  string  $queue
  * @param  int  $delay
  * @param  int  $memory
  * @param  bool  $daemon
  * @return array
  */
 protected function runWorker($connection, $queue, $delay, $memory, $daemon = false)
 {
     $this->worker->setExceptionHandler($this->laravel['Illuminate\\Contracts\\Debug\\ExceptionHandler']);
     if ($daemon) {
         $this->worker->setCache($this->laravel['cache']->driver());
         return $this->worker->daemon($connection, $queue, $delay, $memory, $this->option('timeout', 60), $this->option('sleep'), $this->option('tries'));
     }
     return $this->worker->runNextJob($connection, $queue, $delay, $this->option('sleep'), $this->option('tries'));
 }