Skip to content

Commit ae4bfdd

Browse files
author
Quentin Burny
committed
Add missing functions in Dispatcher contract (#22951)
1 parent 5923416 commit ae4bfdd

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/Illuminate/Contracts/Bus/Dispatcher.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,28 @@ public function dispatchNow($command, $handler = null);
2828
* @return $this
2929
*/
3030
public function pipeThrough(array $pipes);
31+
32+
/**
33+
* Determine if the given command has a handler.
34+
*
35+
* @param mixed $command
36+
* @return bool
37+
*/
38+
public function hasCommandHandler($command);
39+
40+
/**
41+
* Retrieve the handler for a command.
42+
*
43+
* @param mixed $command
44+
* @return bool|mixed
45+
*/
46+
public function getCommandHandler($command);
47+
48+
/**
49+
* Map a command to a handler.
50+
*
51+
* @param array $map
52+
* @return $this
53+
*/
54+
public function map(array $map);
3155
}

0 commit comments

Comments
 (0)