Dispatcher
class Dispatcher implements Dispatcher, QueueingDispatcher (View source)
Methods
void
__construct(
Container $container,
Closure $queueResolver = null)
Create a new command dispatcher instance.
mixed
dispatch($command)
Dispatch a command to its appropriate handler.
mixed
dispatchNow($command)
Dispatch a command to its appropriate handler in the current process.
mixed
dispatchToQueue(
mixed $command)
Dispatch a command to its appropriate handler behind a queue.
$this
pipeThrough(
array $pipes)
Set the pipes through which commands should be piped before dispatching.
Details
at line line 51
void
__construct(
Container $container,
Closure $queueResolver = null)
Create a new command dispatcher instance.
at line line 79
mixed
dispatchNow($command)
Dispatch a command to its appropriate handler in the current process.
at line line 105
mixed
dispatchToQueue(
mixed $command)
Dispatch a command to its appropriate handler behind a queue.
at line line 152
$this
pipeThrough(
array $pipes)
Set the pipes through which commands should be piped before dispatching.