Illuminate\Queue\Console\WorkCommand::runWorker PHP Method

runWorker() protected method

Run the worker instance.
protected runWorker ( string $connection, string $queue ) : array
$connection string
$queue string
return array
    protected function runWorker($connection, $queue)
    {
        $this->worker->setCache($this->laravel['cache']->driver());
        return $this->worker->{$this->option('once') ? 'runNextJob' : 'daemon'}($connection, $queue, $this->gatherWorkerOptions());
    }