2015-02-05 21:52:16 -06:00
|
|
|
<?php namespace FireflyIII\Providers;
|
2015-02-05 21:39:52 -06:00
|
|
|
|
|
|
|
use Illuminate\Bus\Dispatcher;
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
|
2015-02-11 00:35:10 -06:00
|
|
|
/**
|
|
|
|
* Class BusServiceProvider
|
|
|
|
*
|
|
|
|
* @package FireflyIII\Providers
|
|
|
|
*/
|
|
|
|
class BusServiceProvider extends ServiceProvider
|
|
|
|
{
|
2015-02-05 21:39:52 -06:00
|
|
|
|
2015-02-11 00:35:10 -06:00
|
|
|
/**
|
|
|
|
* Bootstrap any application services.
|
|
|
|
*
|
|
|
|
* @param \Illuminate\Bus\Dispatcher $dispatcher
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function boot(Dispatcher $dispatcher)
|
|
|
|
{
|
|
|
|
$dispatcher->mapUsing(
|
|
|
|
function ($command) {
|
|
|
|
return Dispatcher::simpleMapping(
|
|
|
|
$command, 'FireflyIII\Commands', 'FireflyIII\Handlers\Commands'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
2015-02-05 21:39:52 -06:00
|
|
|
|
2015-02-11 00:35:10 -06:00
|
|
|
/**
|
|
|
|
* Register any application services.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function register()
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
2015-02-05 21:39:52 -06:00
|
|
|
|
|
|
|
}
|