Dispatcher
interface Dispatcher
Methods
Dispatch a command to its appropriate handler.
Dispatch a command to its appropriate handler in the current process.
Dispatch a command to its appropriate handler in the current process.
Dispatch a command to its appropriate handler after the current process.
Create a new chain of queueable jobs.
Determine if the given command has a handler.
Retrieve the handler for a command.
Set the pipes commands should be piped through before dispatching.
Map a command to a handler.
Details
at line 14
mixed
dispatch(mixed $command)
Dispatch a command to its appropriate handler.
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.
at line 26
mixed
dispatchNow(mixed $command, mixed $handler = null)
Dispatch a command to its appropriate handler in the current process.
at line 31
void
dispatchAfterResponse(mixed $command, mixed $handler = null)
Dispatch a command to its appropriate handler after the current process.
at line 36
mixed
chain(mixed $jobs = null)
Create a new chain of queueable jobs.
at line 41
bool
hasCommandHandler(mixed $command)
Determine if the given command has a handler.
at line 46
mixed
getCommandHandler(mixed $command)
Retrieve the handler for a command.
at line 53
Dispatcher
pipeThrough(array $pipes)
Set the pipes commands should be piped through before dispatching.
at line 61
Dispatcher
map(array $map)
Map a command to a handler.