interface
Illuminate
/
Contracts
/
Bus
/
Dispatcher
You are viewing an older version of the documentation. For the latest, please visit master documentation.
Dispatcher
Methods
public
dispatch ( $command ) : mixed
Dispatch a command to its appropriate handler.
Parameters
- $command mixed
public
dispatchSync ( $command , $handler ) : mixed
Dispatch a command to its appropriate handler in the current process.
Parameters
- $command mixed
- $handler mixed
public
dispatchNow ( $command , $handler ) : mixed
Dispatch a command to its appropriate handler in the current process.
Parameters
- $command mixed
- $handler mixed
public
hasCommandHandler ( $command ) : bool
Determine if the given command has a handler.
Parameters
- $command mixed
public
getCommandHandler ( $command ) : bool|mixed
Retrieve the handler for a command.
Parameters
- $command mixed
public
pipeThrough ( array $pipes ) : $this
Set the pipes commands should be piped through before dispatching.
Parameters
- $pipes array
public
map ( array $map ) : $this
Map a command to a handler.
Parameters
- $map array