class CallQueuedHandler

Properties

protected Container $container

The container instance.

Methods

void
__construct(Container $container)

Create a new job instance.

void
call(Job $job, array $data)

Handle the queued job.

mixed
setJobInstanceIfNecessary(Job $job, mixed $instance)

Set the job instance of the given class if necessary.

void
failed(array $data, Exception $e)

Call the failed method on the job instance.

Details

at line 24
void __construct(Container $container)

Create a new job instance.

Parameters

Container $container

Return Value

void

at line 36
void call(Job $job, array $data)

Handle the queued job.

Parameters

Job $job
array $data

Return Value

void

at line 58
protected mixed setJobInstanceIfNecessary(Job $job, mixed $instance)

Set the job instance of the given class if necessary.

Parameters

Job $job
mixed $instance

Return Value

mixed

at line 76
void failed(array $data, Exception $e)

Call the failed method on the job instance.

The event instance and the exception will be passed.

Parameters

array $data
Exception $e

Return Value

void