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;
|
|
|
|
|
|
|
|
class BusServiceProvider extends ServiceProvider {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Bootstrap any application services.
|
|
|
|
*
|
|
|
|
* @param \Illuminate\Bus\Dispatcher $dispatcher
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function boot(Dispatcher $dispatcher)
|
|
|
|
{
|
|
|
|
$dispatcher->mapUsing(function($command)
|
|
|
|
{
|
|
|
|
return Dispatcher::simpleMapping(
|
2015-02-05 21:52:16 -06:00
|
|
|
$command, 'FireflyIII\Commands', 'FireflyIII\Handlers\Commands'
|
2015-02-05 21:39:52 -06:00
|
|
|
);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Register any application services.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function register()
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|