<?phpnamespaceIlluminate\Contracts\Bus;interfaceDispatcher{/** * Dispatch a command to its appropriate handler. * * @param mixed $command * @return mixed */publicfunctiondispatch($command);/** * Dispatch a command to its appropriate handler in the current process. * * @param mixed $command * @param mixed $handler * @return mixed */publicfunctiondispatchNow($command,$handler=null);/** * Set the pipes commands should be piped through before dispatching. * * @param array $pipes * @return $this */publicfunctionpipeThrough(array$pipes);}