Dispatcher.php 677 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace Illuminate\Contracts\Bus;
  3. interface Dispatcher
  4. {
  5. /**
  6. * Dispatch a command to its appropriate handler.
  7. *
  8. * @param mixed $command
  9. * @return mixed
  10. */
  11. public function dispatch($command);
  12. /**
  13. * Dispatch a command to its appropriate handler in the current process.
  14. *
  15. * @param mixed $command
  16. * @param mixed $handler
  17. * @return mixed
  18. */
  19. public function dispatchNow($command, $handler = null);
  20. /**
  21. * Set the pipes commands should be piped through before dispatching.
  22. *
  23. * @param array $pipes
  24. * @return $this
  25. */
  26. public function pipeThrough(array $pipes);
  27. }