1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,41 +0,0 @@ |
1 |
-<?php |
|
2 |
- |
|
3 |
-namespace Illuminate\Support\Facades; |
|
4 |
- |
|
5 |
-use Illuminate\Support\Testing\Fakes\BusFake; |
|
6 |
-use Illuminate\Contracts\Bus\Dispatcher as BusDispatcherContract; |
|
7 |
- |
|
8 |
-/** |
|
9 |
- * @method static mixed dispatch($command) |
|
10 |
- * @method static mixed dispatchNow($command, $handler = null) |
|
11 |
- * @method static bool hasCommandHandler($command) |
|
12 |
- * @method static bool|mixed getCommandHandler($command) |
|
13 |
- * @method static \Illuminate\Contracts\Bus\Dispatcher pipeThrough(array $pipes) |
|
14 |
- * @method static \Illuminate\Contracts\Bus\Dispatcher map(array $map) |
|
15 |
- * |
|
16 |
- * @see \Illuminate\Contracts\Bus\Dispatcher |
|
17 |
- */ |
|
18 |
-class Bus extends Facade |
|
19 |
-{ |
|
20 |
- /** |
|
21 |
- * Replace the bound instance with a fake. |
|
22 |
- * |
|
23 |
- * @return \Illuminate\Support\Testing\Fakes\BusFake |
|
24 |
- */ |
|
25 |
- public static function fake() |
|
26 |
- { |
|
27 |
- static::swap($fake = new BusFake); |
|
28 |
- |
|
29 |
- return $fake; |
|
30 |
- } |
|
31 |
- |
|
32 |
- /** |
|
33 |
- * Get the registered name of the component. |
|
34 |
- * |
|
35 |
- * @return string |
|
36 |
- */ |
|
37 |
- protected static function getFacadeAccessor() |
|
38 |
- { |
|
39 |
- return BusDispatcherContract::class; |
|
40 |
- } |
|
41 |
-} |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,41 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+namespace Illuminate\Support\Facades; |
|
4 |
+ |
|
5 |
+use Illuminate\Support\Testing\Fakes\BusFake; |
|
6 |
+use Illuminate\Contracts\Bus\Dispatcher as BusDispatcherContract; |
|
7 |
+ |
|
8 |
+/** |
|
9 |
+ * @method static mixed dispatch($command) |
|
10 |
+ * @method static mixed dispatchNow($command, $handler = null) |
|
11 |
+ * @method static bool hasCommandHandler($command) |
|
12 |
+ * @method static bool|mixed getCommandHandler($command) |
|
13 |
+ * @method static \Illuminate\Contracts\Bus\Dispatcher pipeThrough(array $pipes) |
|
14 |
+ * @method static \Illuminate\Contracts\Bus\Dispatcher map(array $map) |
|
15 |
+ * |
|
16 |
+ * @see \Illuminate\Contracts\Bus\Dispatcher |
|
17 |
+ */ |
|
18 |
+class Bus extends Facade |
|
19 |
+{ |
|
20 |
+ /** |
|
21 |
+ * Replace the bound instance with a fake. |
|
22 |
+ * |
|
23 |
+ * @return \Illuminate\Support\Testing\Fakes\BusFake |
|
24 |
+ */ |
|
25 |
+ public static function fake() |
|
26 |
+ { |
|
27 |
+ static::swap($fake = new BusFake); |
|
28 |
+ |
|
29 |
+ return $fake; |
|
30 |
+ } |
|
31 |
+ |
|
32 |
+ /** |
|
33 |
+ * Get the registered name of the component. |
|
34 |
+ * |
|
35 |
+ * @return string |
|
36 |
+ */ |
|
37 |
+ protected static function getFacadeAccessor() |
|
38 |
+ { |
|
39 |
+ return BusDispatcherContract::class; |
|
40 |
+ } |
|
41 |
+} |