interface Dispatcher

Methods

mixed
dispatch(mixed $command)

Dispatch a command to its appropriate handler.

mixed
dispatchSync(mixed $command, mixed $handler = null)

Dispatch a command to its appropriate handler in the current process.

mixed
dispatchNow(mixed $command, mixed $handler = null)

Dispatch a command to its appropriate handler in the current process.

void
dispatchAfterResponse(mixed $command, mixed $handler = null)

Dispatch a command to its appropriate handler after the current process.

mixed
chain(mixed $jobs = null)

Create a new chain of queueable jobs.

bool
hasCommandHandler(mixed $command)

Determine if the given command has a handler.

mixed
getCommandHandler(mixed $command)

Retrieve the handler for a command.

pipeThrough(array $pipes)

Set the pipes commands should be piped through before dispatching.

map(array $map)

Map a command to a handler.

Details

at line 14
mixed dispatch(mixed $command)

Dispatch a command to its appropriate handler.

Parameters

mixed $command

Return Value

mixed

at line 21
mixed dispatchSync(mixed $command, mixed $handler = null)

Dispatch a command to its appropriate handler in the current process.

Queueable jobs will be dispatched to the "sync" queue.

Parameters

mixed $command
mixed $handler

Return Value

mixed

at line 26
mixed dispatchNow(mixed $command, mixed $handler = null)

Dispatch a command to its appropriate handler in the current process.

Parameters

mixed $command
mixed $handler

Return Value

mixed

at line 31
void dispatchAfterResponse(mixed $command, mixed $handler = null)

Dispatch a command to its appropriate handler after the current process.

Parameters

mixed $command
mixed $handler

Return Value

void

at line 36
mixed chain(mixed $jobs = null)

Create a new chain of queueable jobs.

Parameters

mixed $jobs

Return Value

mixed

at line 41
bool hasCommandHandler(mixed $command)

Determine if the given command has a handler.

Parameters

mixed $command

Return Value

bool

at line 46
mixed getCommandHandler(mixed $command)

Retrieve the handler for a command.

Parameters

mixed $command

Return Value

mixed

at line 53
Dispatcher pipeThrough(array $pipes)

Set the pipes commands should be piped through before dispatching.

Parameters

array $pipes

Return Value

Dispatcher

at line 61
Dispatcher map(array $map)

Map a command to a handler.

Parameters

array $map

Return Value

Dispatcher