2016-01-08 09:00:07 -06:00
|
|
|
<?php
|
2016-02-05 05:08:25 -06:00
|
|
|
declare(strict_types = 1);
|
2016-01-08 09:00:07 -06:00
|
|
|
|
|
|
|
namespace FireflyIII\Providers;
|
2015-02-05 21:39:52 -06:00
|
|
|
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
2016-04-08 07:44:53 -05:00
|
|
|
use Log;
|
|
|
|
use Config;
|
2016-01-09 01:20:55 -06:00
|
|
|
/**
|
|
|
|
* Class AppServiceProvider
|
|
|
|
*
|
|
|
|
* @package FireflyIII\Providers
|
|
|
|
*/
|
2015-02-11 00:35:10 -06:00
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Bootstrap any application services.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function boot()
|
|
|
|
{
|
|
|
|
//
|
|
|
|
}
|
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()
|
|
|
|
{
|
2016-04-08 07:44:53 -05:00
|
|
|
// make sure the logger doesn't log everything when it doesn't need to.
|
|
|
|
$monolog = Log::getMonolog();
|
|
|
|
foreach ($monolog->getHandlers() as $handler) {
|
|
|
|
$handler->setLevel(Config::get('app.log-level'));
|
|
|
|
}
|
2015-02-11 00:35:10 -06:00
|
|
|
}
|
2015-02-05 21:39:52 -06:00
|
|
|
}
|