class
Illuminate
/
Queue
/
CallQueuedHandler
You are viewing an older version of the documentation. For the latest, please visit master documentation.
CallQueuedHandler
Properties
Methods
public
__construct ( Dispatcher $dispatcher , Container $container ) : void
Create a new handler instance.
Parameters
- $dispatcher Dispatcher
- $container Container
public
call ( Job $job , array $data ) : void
Handle the queued job.
Parameters
- $job Job
- $data array
protected
getCommand ( array $data ) : mixed
Get the command from the given payload.
Parameters
- $data array
protected
dispatchThroughMiddleware ( Job $job , $command ) : mixed
Dispatch the given job / command through its specified middleware.
Parameters
- $job Job
- $command mixed
protected
resolveHandler ( $job , $command ) : mixed
Resolve the handler for the given command.
Parameters
- $job Job
- $command mixed
protected
setJobInstanceIfNecessary ( Job $job , $instance ) : mixed
Set the job instance of the given class if necessary.
Parameters
- $job Job
- $instance mixed
protected
ensureNextJobInChainIsDispatched ( $command ) : void
Ensure the next job in the chain is dispatched if applicable.
Parameters
- $command mixed
protected
ensureSuccessfulBatchJobIsRecorded ( $command ) : void
Ensure the batch is notified of the successful job completion.
Parameters
- $command mixed
protected
ensureUniqueJobLockIsReleased ( $command ) : void
Ensure the lock for a unique job is released.
Parameters
- $command mixed
protected
handleModelNotFound ( Job $job , $e ) : void
Handle a model not found exception.
Parameters
public
failed ( array $data , $e , string $uuid ) : void
Call the failed method on the job instance.
Parameters
- $data array
- $e Throwable |null
- $uuid string
protected
ensureFailedBatchJobIsRecorded ( string $uuid , $command , $e ) : void
Ensure the batch is notified of the failed job.
Parameters
- $uuid string
- $command mixed
- $e Throwable
protected
ensureChainCatchCallbacksAreInvoked ( string $uuid , $command , $e ) : void
Ensure the chained job catch callbacks are invoked.
Parameters
- $uuid string
- $command mixed
- $e Throwable