diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2015-08-19 15:17:13 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2015-08-19 15:17:13 +0300 |
commit | e1cc821b4253d30efff1a15b5ede1476d17a8bf2 (patch) | |
tree | a68a5aadb802f8605e5274ba999b076ef85d0945 /plugins/Monolog/config | |
parent | baec74598a8a57af403c35af40e7ea46570307d6 (diff) |
simplify definition
Diffstat (limited to 'plugins/Monolog/config')
-rw-r--r-- | plugins/Monolog/config/config.php | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/plugins/Monolog/config/config.php b/plugins/Monolog/config/config.php index 5a9b2baf5c..6a7fb0130f 100644 --- a/plugins/Monolog/config/config.php +++ b/plugins/Monolog/config/config.php @@ -11,15 +11,11 @@ return array( 'Psr\Log\LoggerInterface' => DI\get('Monolog\Logger'), - 'log.handler.classes' => DI\factory(function (ContainerInterface $c) { - $classes = array( - 'file' => 'Piwik\Plugins\Monolog\Handler\FileHandler', - 'screen' => 'Piwik\Plugins\Monolog\Handler\WebNotificationHandler', - 'database' => 'Piwik\Plugins\Monolog\Handler\DatabaseHandler', - ); - - return $classes; - }), + 'log.handler.classes' => array( + 'file' => 'Piwik\Plugins\Monolog\Handler\FileHandler', + 'screen' => 'Piwik\Plugins\Monolog\Handler\WebNotificationHandler', + 'database' => 'Piwik\Plugins\Monolog\Handler\DatabaseHandler', + ), 'log.handlers' => DI\factory(function (ContainerInterface $c) { if ($c->has('ini.log.log_writers')) { $writerNames = $c->get('ini.log.log_writers'); |