Upgraded to Symfony 2.1-beta2
This commit is contained in:
@@ -53,6 +53,8 @@ class Configuration implements ConfigurationInterface
|
||||
->scalarNode('password')->defaultNull()->end()
|
||||
->scalarNode('host')->defaultValue('localhost')->end()
|
||||
->scalarNode('port')->defaultFalse()->end()
|
||||
->scalarNode('timeout')->defaultValue(30)->end()
|
||||
->scalarNode('source_ip')->defaultNull()->end()
|
||||
->scalarNode('encryption')
|
||||
->defaultNull()
|
||||
->validate()
|
||||
|
@@ -76,7 +76,7 @@ class SwiftmailerExtension extends Extension
|
||||
$config['port'] = 'ssl' === $config['encryption'] ? 465 : 25;
|
||||
}
|
||||
|
||||
foreach (array('encryption', 'port', 'host', 'username', 'password', 'auth_mode') as $key) {
|
||||
foreach (array('encryption', 'port', 'host', 'username', 'password', 'auth_mode', 'timeout', 'source_ip') as $key) {
|
||||
$container->setParameter('swiftmailer.transport.smtp.'.$key, $config[$key]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user