interface
Illuminate
/
Contracts
/
Bus
/
Dispatcher
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
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