Illuminate\Queue\Worker::__construct PHP Method

__construct() public method

Create a new queue worker.
public __construct ( Illuminate\Queue\QueueManager $manager, Illuminate\Contracts\Events\Dispatcher $events, Illuminate\Contracts\Debug\ExceptionHandler $exceptions ) : void
$manager Illuminate\Queue\QueueManager
$events Illuminate\Contracts\Events\Dispatcher
$exceptions Illuminate\Contracts\Debug\ExceptionHandler
return void
    public function __construct(QueueManager $manager, Dispatcher $events, ExceptionHandler $exceptions)
    {
        $this->events = $events;
        $this->manager = $manager;
        $this->exceptions = $exceptions;
    }