| 1 | <?php |
||
| 8 | class BusServiceProvider extends ServiceProvider |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Bootstrap any application services. |
||
| 12 | * |
||
| 13 | * @param \Illuminate\Bus\Dispatcher $dispatcher |
||
| 14 | */ |
||
| 15 | public function boot(Dispatcher $dispatcher) |
||
| 16 | { |
||
| 17 | 9 | $dispatcher->mapUsing(function ($command) { |
|
| 18 | return Dispatcher::simpleMapping( |
||
| 19 | $command, |
||
| 20 | \PiFinder\Commands::class, |
||
| 21 | \PiFinder\Handlers\Commands::class |
||
| 22 | ); |
||
| 23 | 9 | }); |
|
| 24 | 9 | } |
|
| 25 | |||
| 26 | /** |
||
| 27 | * Register any application services. |
||
| 28 | */ |
||
| 29 | 9 | public function register() |
|
| 33 | } |
||
| 34 |