2017-01-30 20:40:43 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Providers;
|
2015-03-12 01:44:39 +01:00
|
|
|
|
|
|
|
use Illuminate\Bus\Dispatcher;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
2017-01-30 20:40:43 +01:00
|
|
|
* Class BusServiceProvider.
|
2016-07-03 18:11:58 +02:00
|
|
|
*/
|
|
|
|
class BusServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Bootstrap any application services.
|
|
|
|
*
|
2017-01-30 20:40:43 +01:00
|
|
|
* @param \Illuminate\Bus\Dispatcher $dispatcher
|
|
|
|
*
|
2016-07-03 18:11:58 +02:00
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function boot(Dispatcher $dispatcher)
|
|
|
|
{
|
|
|
|
$dispatcher->mapUsing(function ($command) {
|
|
|
|
return Dispatcher::simpleMapping(
|
|
|
|
$command, 'App\Commands', 'App\Handlers\Commands'
|
|
|
|
);
|
|
|
|
});
|
|
|
|
}
|
2015-03-12 01:44:39 +01:00
|
|
|
|
2016-07-03 18:11:58 +02:00
|
|
|
/**
|
|
|
|
* Register any application services.
|
|
|
|
*/
|
|
|
|
public function register()
|
|
|
|
{
|
|
|
|
}
|
2015-03-12 01:44:39 +01:00
|
|
|
}
|