mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-02-15 05:15:22 +01:00
41 lines
891 B
PHP
41 lines
891 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Cachet.
|
|
*
|
|
* (c) James Brooks <james@cachethq.io>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace CachetHQ\Cachet\Providers;
|
|
|
|
use Illuminate\Bus\Dispatcher;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class BusServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Bootstrap any application services.
|
|
*
|
|
* @param \Illuminate\Bus\Dispatcher $dispatcher
|
|
*/
|
|
public function boot(Dispatcher $dispatcher)
|
|
{
|
|
$dispatcher->mapUsing(function ($command) {
|
|
return Dispatcher::simpleMapping(
|
|
$command, 'CachetHQ\Cachet\Commands', 'CachetHQ\Cachet\Handlers\Commands'
|
|
);
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register()
|
|
{
|
|
//
|
|
}
|
|
}
|