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