class HackyManagerForWorker extends QueueManager implements Factory

A hacky workaround to avoid injecting an entire QueueManager (which we don't want to build) into Laravel's queue worker class.

Laravel 6.0 will clean this up; once we upgrade, we can remove this hack and directly inject the factory.

Methods

__construct(Factory $factory)

HackyManagerForWorker constructor.

Queue
connection(string $name = null)

Resolve a queue connection instance.

bool
isDownForMaintenance()

Determine if the application is in maintenance mode.

Details

__construct(Factory $factory)

HackyManagerForWorker constructor.

Needs a real connection factory to delegate to.

Parameters

Factory $factory

Queue connection(string $name = null)

Resolve a queue connection instance.

Parameters

string $name

Return Value

Queue

bool isDownForMaintenance()

Determine if the application is in maintenance mode.

Return Value

bool