Commit 9b846972 authored by Frank Hildebrandt's avatar Frank Hildebrandt Committed by Fabien Potencier

fix lazy evaluation of 'monolog.use_error_handler'

parent efe70d6a
...@@ -106,7 +106,9 @@ class MonologServiceProvider implements ServiceProviderInterface, BootableProvid ...@@ -106,7 +106,9 @@ class MonologServiceProvider implements ServiceProviderInterface, BootableProvid
$app['monolog.permission'] = null; $app['monolog.permission'] = null;
$app['monolog.exception.logger_filter'] = null; $app['monolog.exception.logger_filter'] = null;
$app['monolog.logfile'] = null; $app['monolog.logfile'] = null;
$app['monolog.use_error_handler'] = !$app['debug']; $app['monolog.use_error_handler'] = function ($app) {
return !$app['debug'];
};
} }
public function boot(Application $app) public function boot(Application $app)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment