Commit 6c89d861 authored by Fabien Potencier's avatar Fabien Potencier

bug #1408 fix lazy evaluation of 'monolog.use_error_handler' (Frank Hildebrandt)

This PR was squashed before being merged into the 2.0.x-dev branch (closes #1408).

Discussion
----------

fix lazy evaluation of 'monolog.use_error_handler'

the value of 'debug' could be set after registering the serviceprovider.

Commits
-------

9b846972 fix lazy evaluation of 'monolog.use_error_handler'
parents 183e39aa 9b846972
......@@ -106,7 +106,9 @@ class MonologServiceProvider implements ServiceProviderInterface, BootableProvid
$app['monolog.permission'] = null;
$app['monolog.exception.logger_filter'] = 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)
......
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