|
@@ -3,7 +3,7 @@
|
|
/*
|
|
/*
|
|
* This file is part of the Symfony package.
|
|
* This file is part of the Symfony package.
|
|
*
|
|
*
|
|
- * (c) Fabien Potencier <fabien@symfony.com
|
|
|
|
|
|
+ * (c) Fabien Potencier <fabien@symfony.com>
|
|
*
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
* file that was distributed with this source code.
|
|
@@ -49,7 +49,7 @@ class MonologExtension extends Extension
|
|
|
|
|
|
$logger = $container->getDefinition('monolog.logger_prototype');
|
|
$logger = $container->getDefinition('monolog.logger_prototype');
|
|
|
|
|
|
- if (!empty ($config['processors'])) {
|
|
|
|
|
|
+ if (!empty($config['processors'])) {
|
|
$this->addProcessors($logger, $config['processors']);
|
|
$this->addProcessors($logger, $config['processors']);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -190,10 +190,10 @@ class MonologExtension extends Extension
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
|
|
|
|
- if (!empty ($handler['formatter'])) {
|
|
|
|
|
|
+ if (!empty($handler['formatter'])) {
|
|
$definition->addMethodCall('setFormatter', array(new Reference($handler['formatter'])));
|
|
$definition->addMethodCall('setFormatter', array(new Reference($handler['formatter'])));
|
|
}
|
|
}
|
|
- if (!empty ($handler['processors'])) {
|
|
|
|
|
|
+ if (!empty($handler['processors'])) {
|
|
$this->addProcessors($definition, $handler['processors']);
|
|
$this->addProcessors($definition, $handler['processors']);
|
|
}
|
|
}
|
|
$container->setDefinition($handlerId, $definition);
|
|
$container->setDefinition($handlerId, $definition);
|