Fixed debug bug
This commit is contained in:
parent
f398231c86
commit
75b6259fee
|
@ -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';
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue