Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2015-08-19 15:17:13 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-08-19 15:17:13 +0300
commite1cc821b4253d30efff1a15b5ede1476d17a8bf2 (patch)
treea68a5aadb802f8605e5274ba999b076ef85d0945 /plugins/Monolog
parentbaec74598a8a57af403c35af40e7ea46570307d6 (diff)
simplify definition
Diffstat (limited to 'plugins/Monolog')
-rw-r--r--plugins/Monolog/config/config.php14
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');