Merge remote branch 'Infranology/cs-typo-fixes'
* Infranology/cs-typo-fixes: fixed typos and CS
This commit is contained in:
commit
a91279fbaa
@ -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);
|
||||||
|
@ -52,7 +52,7 @@ class Configuration implements ConfigurationInterface
|
|||||||
->scalarNode('transport')
|
->scalarNode('transport')
|
||||||
->defaultValue('smtp')
|
->defaultValue('smtp')
|
||||||
->validate()
|
->validate()
|
||||||
->ifNotInArray(array ('smtp', 'mail', 'sendmail', 'gmail', null))
|
->ifNotInArray(array('smtp', 'mail', 'sendmail', 'gmail', null))
|
||||||
->thenInvalid('The %s transport is not supported')
|
->thenInvalid('The %s transport is not supported')
|
||||||
->end()
|
->end()
|
||||||
->end()
|
->end()
|
||||||
@ -63,14 +63,14 @@ class Configuration implements ConfigurationInterface
|
|||||||
->scalarNode('encryption')
|
->scalarNode('encryption')
|
||||||
->defaultNull()
|
->defaultNull()
|
||||||
->validate()
|
->validate()
|
||||||
->ifNotInArray(array ('tls', 'ssl', null))
|
->ifNotInArray(array('tls', 'ssl', null))
|
||||||
->thenInvalid('The %s encryption is not supported')
|
->thenInvalid('The %s encryption is not supported')
|
||||||
->end()
|
->end()
|
||||||
->end()
|
->end()
|
||||||
->scalarNode('auth_mode')
|
->scalarNode('auth_mode')
|
||||||
->defaultNull()
|
->defaultNull()
|
||||||
->validate()
|
->validate()
|
||||||
->ifNotInArray(array ('plain', 'login', 'cram-md5', null))
|
->ifNotInArray(array('plain', 'login', 'cram-md5', null))
|
||||||
->thenInvalid('The %s authentication mode is not supported')
|
->thenInvalid('The %s authentication mode is not supported')
|
||||||
->end()
|
->end()
|
||||||
->end()
|
->end()
|
||||||
|
Reference in New Issue
Block a user