CallQueuedHandler

class CallQueuedHandler (View source)

Properties

protected Dispatcher $dispatcher The bus dispatcher implementation.

Methods

void __construct(Dispatcher $dispatcher)

Create a new handler 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)

Call the failed method on the job instance.

Details

void __construct(Dispatcher $dispatcher)

Create a new handler instance.

Parameters

Dispatcher $dispatcher

Return Value

void

void call(Job $job, array $data)

Handle the queued job.

Parameters

Job $job
array $data

Return Value

void

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

void failed(array $data)

Call the failed method on the job instance.

Parameters

array $data

Return Value

void

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.1/Illuminate/Queue/CallQueuedHandler.html