fixed typos and CS
This commit is contained in:
parent
59c6609aec
commit
888eaf1b2f
@ -3,7 +3,7 @@
|
||||
/*
|
||||
* 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
|
||||
* file that was distributed with this source code.
|
||||
@ -49,7 +49,7 @@ class MonologExtension extends Extension
|
||||
|
||||
$logger = $container->getDefinition('monolog.logger_prototype');
|
||||
|
||||
if (!empty ($config['processors'])) {
|
||||
if (!empty($config['processors'])) {
|
||||
$this->addProcessors($logger, $config['processors']);
|
||||
}
|
||||
|
||||
@ -190,10 +190,10 @@ class MonologExtension extends Extension
|
||||
break;
|
||||
}
|
||||
|
||||
if (!empty ($handler['formatter'])) {
|
||||
if (!empty($handler['formatter'])) {
|
||||
$definition->addMethodCall('setFormatter', array(new Reference($handler['formatter'])));
|
||||
}
|
||||
if (!empty ($handler['processors'])) {
|
||||
if (!empty($handler['processors'])) {
|
||||
$this->addProcessors($definition, $handler['processors']);
|
||||
}
|
||||
$container->setDefinition($handlerId, $definition);
|
||||
|
@ -52,7 +52,7 @@ class Configuration implements ConfigurationInterface
|
||||
->scalarNode('transport')
|
||||
->defaultValue('smtp')
|
||||
->validate()
|
||||
->ifNotInArray(array ('smtp', 'mail', 'sendmail', 'gmail', null))
|
||||
->ifNotInArray(array('smtp', 'mail', 'sendmail', 'gmail', null))
|
||||
->thenInvalid('The %s transport is not supported')
|
||||
->end()
|
||||
->end()
|
||||
@ -63,14 +63,14 @@ class Configuration implements ConfigurationInterface
|
||||
->scalarNode('encryption')
|
||||
->defaultNull()
|
||||
->validate()
|
||||
->ifNotInArray(array ('tls', 'ssl', null))
|
||||
->ifNotInArray(array('tls', 'ssl', null))
|
||||
->thenInvalid('The %s encryption is not supported')
|
||||
->end()
|
||||
->end()
|
||||
->scalarNode('auth_mode')
|
||||
->defaultNull()
|
||||
->validate()
|
||||
->ifNotInArray(array ('plain', 'login', 'cram-md5', null))
|
||||
->ifNotInArray(array('plain', 'login', 'cram-md5', null))
|
||||
->thenInvalid('The %s authentication mode is not supported')
|
||||
->end()
|
||||
->end()
|
||||
|
Reference in New Issue
Block a user