1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,55 +0,0 @@ |
1 |
-<?php |
|
2 |
- |
|
3 |
-namespace Illuminate\Contracts\Bus; |
|
4 |
- |
|
5 |
-interface Dispatcher |
|
6 |
-{ |
|
7 |
- /** |
|
8 |
- * Dispatch a command to its appropriate handler. |
|
9 |
- * |
|
10 |
- * @param mixed $command |
|
11 |
- * @return mixed |
|
12 |
- */ |
|
13 |
- public function dispatch($command); |
|
14 |
- |
|
15 |
- /** |
|
16 |
- * Dispatch a command to its appropriate handler in the current process. |
|
17 |
- * |
|
18 |
- * @param mixed $command |
|
19 |
- * @param mixed $handler |
|
20 |
- * @return mixed |
|
21 |
- */ |
|
22 |
- public function dispatchNow($command, $handler = null); |
|
23 |
- |
|
24 |
- /** |
|
25 |
- * Determine if the given command has a handler. |
|
26 |
- * |
|
27 |
- * @param mixed $command |
|
28 |
- * @return bool |
|
29 |
- */ |
|
30 |
- public function hasCommandHandler($command); |
|
31 |
- |
|
32 |
- /** |
|
33 |
- * Retrieve the handler for a command. |
|
34 |
- * |
|
35 |
- * @param mixed $command |
|
36 |
- * @return bool|mixed |
|
37 |
- */ |
|
38 |
- public function getCommandHandler($command); |
|
39 |
- |
|
40 |
- /** |
|
41 |
- * Set the pipes commands should be piped through before dispatching. |
|
42 |
- * |
|
43 |
- * @param array $pipes |
|
44 |
- * @return $this |
|
45 |
- */ |
|
46 |
- public function pipeThrough(array $pipes); |
|
47 |
- |
|
48 |
- /** |
|
49 |
- * Map a command to a handler. |
|
50 |
- * |
|
51 |
- * @param array $map |
|
52 |
- * @return $this |
|
53 |
- */ |
|
54 |
- public function map(array $map); |
|
55 |
-} |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,55 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+namespace Illuminate\Contracts\Bus; |
|
4 |
+ |
|
5 |
+interface Dispatcher |
|
6 |
+{ |
|
7 |
+ /** |
|
8 |
+ * Dispatch a command to its appropriate handler. |
|
9 |
+ * |
|
10 |
+ * @param mixed $command |
|
11 |
+ * @return mixed |
|
12 |
+ */ |
|
13 |
+ public function dispatch($command); |
|
14 |
+ |
|
15 |
+ /** |
|
16 |
+ * Dispatch a command to its appropriate handler in the current process. |
|
17 |
+ * |
|
18 |
+ * @param mixed $command |
|
19 |
+ * @param mixed $handler |
|
20 |
+ * @return mixed |
|
21 |
+ */ |
|
22 |
+ public function dispatchNow($command, $handler = null); |
|
23 |
+ |
|
24 |
+ /** |
|
25 |
+ * Determine if the given command has a handler. |
|
26 |
+ * |
|
27 |
+ * @param mixed $command |
|
28 |
+ * @return bool |
|
29 |
+ */ |
|
30 |
+ public function hasCommandHandler($command); |
|
31 |
+ |
|
32 |
+ /** |
|
33 |
+ * Retrieve the handler for a command. |
|
34 |
+ * |
|
35 |
+ * @param mixed $command |
|
36 |
+ * @return bool|mixed |
|
37 |
+ */ |
|
38 |
+ public function getCommandHandler($command); |
|
39 |
+ |
|
40 |
+ /** |
|
41 |
+ * Set the pipes commands should be piped through before dispatching. |
|
42 |
+ * |
|
43 |
+ * @param array $pipes |
|
44 |
+ * @return $this |
|
45 |
+ */ |
|
46 |
+ public function pipeThrough(array $pipes); |
|
47 |
+ |
|
48 |
+ /** |
|
49 |
+ * Map a command to a handler. |
|
50 |
+ * |
|
51 |
+ * @param array $map |
|
52 |
+ * @return $this |
|
53 |
+ */ |
|
54 |
+ public function map(array $map); |
|
55 |
+} |