Files
firefly-iii/app/Providers/BusServiceProvider.php

45 lines
854 B
PHP
Raw Normal View History

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