1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00
invoiceninja/app/Providers/BusServiceProvider.php

36 lines
695 B
PHP
Raw Normal View History

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;
/**
2017-01-30 20:40:43 +01:00
* Class BusServiceProvider.
*/
class BusServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
2017-01-30 20:40:43 +01:00
* @param \Illuminate\Bus\Dispatcher $dispatcher
*
* @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
/**
* Register any application services.
*/
public function register()
{
}
2015-03-12 01:44:39 +01:00
}