firefly-iii/app/Providers/BusServiceProvider.php

45 lines
855 B
PHP
Raw Normal View History

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
*
2015-05-25 12:58:13 -05:00
* @codeCoverageIgnore
*
2015-02-11 00:35:10 -06:00
* @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(
2015-06-06 16:09:12 -05:00
function ($command) {
2015-02-11 00:35:10 -06:00
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
}