Cachet/app/Providers/AppServiceProvider.php

42 lines
962 B
PHP
Raw Normal View History

2015-03-20 18:30:45 -06:00
<?php
/*
* This file is part of Cachet.
*
2015-05-25 17:59:08 +01:00
* (c) Cachet HQ <support@cachethq.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
2015-03-20 18:30:45 -06:00
namespace CachetHQ\Cachet\Providers;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Boot the service provider.
*
* @param \Illuminate\Bus\Dispatcher $dispatcher
*
* @return void
*/
public function boot(Dispatcher $dispatcher)
{
$dispatcher->mapUsing(function ($command) {
return Dispatcher::simpleMapping($command, 'CachetHQ\Cachet\Commands', 'CachetHQ\Cachet\Handlers\Commands');
});
}
2015-03-20 18:30:45 -06:00
/**
2015-05-28 19:46:54 +01:00
* Register the service provider.
2015-03-20 18:30:45 -06:00
*
2015-05-28 19:46:54 +01:00
* @return void
2015-03-20 18:30:45 -06:00
*/
public function register()
{
2015-05-28 19:46:54 +01:00
$this->app->bind('Illuminate\Contracts\Auth\Registrar', 'CachetHQ\Cachet\Services\Registrar');
2015-03-20 18:30:45 -06:00
}
}