QueueingDispatcher
interface QueueingDispatcher implements Dispatcher (View source)
Methods
mixed | dispatch(mixed $command) Dispatch a command to its appropriate handler. | from Dispatcher |
mixed | dispatchNow(mixed $command, mixed $handler = null) Dispatch a command to its appropriate handler in the current process. | from Dispatcher |
bool | hasCommandHandler(mixed $command) Determine if the given command has a handler. | from Dispatcher |
bool|mixed | getCommandHandler(mixed $command) Retrieve the handler for a command. | from Dispatcher |
$this | pipeThrough(array $pipes) Set the pipes commands should be piped through before dispatching. | from Dispatcher |
$this | map(array $map) Map a command to a handler. | from Dispatcher |
mixed | dispatchToQueue(mixed $command) Dispatch a command to its appropriate handler behind a queue. |
Details
mixed dispatch(mixed $command)
Dispatch a command to its appropriate handler.
mixed dispatchNow(mixed $command, mixed $handler = null)
Dispatch a command to its appropriate handler in the current process.
bool hasCommandHandler(mixed $command)
Determine if the given command has a handler.
bool|mixed getCommandHandler(mixed $command)
Retrieve the handler for a command.
$this pipeThrough(array $pipes)
Set the pipes commands should be piped through before dispatching.
$this map(array $map)
Map a command to a handler.
mixed dispatchToQueue(mixed $command)
Dispatch a command to its appropriate handler behind a queue.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/7.x/Illuminate/Contracts/Bus/QueueingDispatcher.html