From 75b6259fee95b516ba60d7aa53695cf89231a9e8 Mon Sep 17 00:00:00 2001 From: sikofitt Date: Wed, 13 Jul 2016 14:48:30 -0700 Subject: [PATCH] Fixed debug bug --- app/App.php | 2 +- app/providers.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/App.php b/app/App.php index 5e17e65..8f4dede 100644 --- a/app/App.php +++ b/app/App.php @@ -103,7 +103,7 @@ class App extends Application } public function setDebug() { - $this['debug'] = null !== $this->config('app.debug') ? $this->config('app.debug') : true; + $this['debug'] = (null !== $this->config('app.debug') ? $this->config('app.debug') : true); $this['env'] = getenv('PHP_ENV'); if (!$this['env']) { $this['env'] = null !== $this->config('app.environment') ? $this->config('app.environment') : 'dev'; diff --git a/app/providers.php b/app/providers.php index 34d365f..caae940 100644 --- a/app/providers.php +++ b/app/providers.php @@ -33,7 +33,7 @@ use Symfony\Bridge\Monolog\Logger; use WhoopsPimple\WhoopsServiceProvider; $app->register(new ConfigServiceProvider(), [ - 'config.path' => $app->getConfDirectory(), + 'config.path' => $app->getConfDirectory() . '/config.yml', ]); $app->setDebug();