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 12
mixed
dispatch(mixed $command)
Dispatch a command to its appropriate handler.
at line 19
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 24
mixed
dispatchNow(mixed $command, mixed $handler = null)
Dispatch a command to its appropriate handler in the current process.
at line 29
void
dispatchAfterResponse(mixed $command, mixed $handler = null)
Dispatch a command to its appropriate handler after the current process.
at line 34
mixed
chain(mixed $jobs = null)
Create a new chain of queueable jobs.
at line 39
bool
hasCommandHandler(mixed $command)
Determine if the given command has a handler.
at line 44
mixed
getCommandHandler(mixed $command)
Retrieve the handler for a command.
at line 49
Dispatcher
pipeThrough(array $pipes)
Set the pipes commands should be piped through before dispatching.
at line 54
Dispatcher
map(array $map)
Map a command to a handler.