Fixed debug bug

This commit is contained in:
R. Eric Wheeler 2016-07-13 14:48:30 -07:00
parent f398231c86
commit 75b6259fee
2 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ class App extends Application
} }
public function setDebug() 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'); $this['env'] = getenv('PHP_ENV');
if (!$this['env']) { if (!$this['env']) {
$this['env'] = null !== $this->config('app.environment') ? $this->config('app.environment') : 'dev'; $this['env'] = null !== $this->config('app.environment') ? $this->config('app.environment') : 'dev';

View File

@ -33,7 +33,7 @@ use Symfony\Bridge\Monolog\Logger;
use WhoopsPimple\WhoopsServiceProvider; use WhoopsPimple\WhoopsServiceProvider;
$app->register(new ConfigServiceProvider(), [ $app->register(new ConfigServiceProvider(), [
'config.path' => $app->getConfDirectory(), 'config.path' => $app->getConfDirectory() . '/config.yml',
]); ]);
$app->setDebug(); $app->setDebug();