Skip to content

Commit

Permalink
Add missing functions in Dispatcher contract (#22951)
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Burny committed Jan 30, 2018
1 parent 5923416 commit ae4bfdd
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/Illuminate/Contracts/Bus/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,28 @@ public function dispatchNow($command, $handler = null);
* @return $this
*/
public function pipeThrough(array $pipes);

/**
* Determine if the given command has a handler.
*
* @param mixed $command
* @return bool
*/
public function hasCommandHandler($command);

/**
* Retrieve the handler for a command.
*
* @param mixed $command
* @return bool|mixed
*/
public function getCommandHandler($command);

/**
* Map a command to a handler.
*
* @param array $map
* @return $this
*/
public function map(array $map);
}

0 comments on commit ae4bfdd

Please sign in to comment.