Skip to content
This repository has been archived by the owner on Feb 6, 2022. It is now read-only.

Commit

Permalink
fixed CS
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Oct 9, 2016
1 parent e514a92 commit ad32530
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions DependencyInjection/SwiftmailerExtension.php
Expand Up @@ -149,9 +149,9 @@ protected function configureMailerTransport($name, array $mailer, ContainerBuild
$authDecorator = new DefinitionDecorator('swiftmailer.transport.authhandler.abstract');
$container
->setDefinition(sprintf('swiftmailer.mailer.%s.transport.authhandler', $name), $authDecorator)
->addMethodCall('setUsername', array('%swiftmailer.mailer.'.$name.'.transport.smtp.username%'))
->addMethodCall('setPassword', array('%swiftmailer.mailer.'.$name.'.transport.smtp.password%'))
->addMethodCall('setAuthMode', array('%swiftmailer.mailer.'.$name.'.transport.smtp.auth_mode%'));
->addMethodCall('setUsername', array(sprintf('%%swiftmailer.mailer.%s.transport.smtp.username%%', $name)))
->addMethodCall('setPassword', array(sprintf('%%swiftmailer.mailer.%s.transport.smtp.password%%', $name)))
->addMethodCall('setAuthMode', array(sprintf('%%swiftmailer.mailer.%s.transport.smtp.auth_mode%%', $name)));

$bufferDecorator = new DefinitionDecorator('swiftmailer.transport.buffer.abstract');
$container
Expand All @@ -165,11 +165,11 @@ protected function configureMailerTransport($name, array $mailer, ContainerBuild
array(new Reference(sprintf('swiftmailer.mailer.%s.transport.authhandler', $name))),
new Reference(sprintf('swiftmailer.mailer.%s.transport.eventdispatcher', $name)),
))
->addMethodCall('setHost', array('%swiftmailer.mailer.'.$name.'.transport.smtp.host%'))
->addMethodCall('setPort', array('%swiftmailer.mailer.'.$name.'.transport.smtp.port%'))
->addMethodCall('setEncryption', array('%swiftmailer.mailer.'.$name.'.transport.smtp.encryption%'))
->addMethodCall('setTimeout', array('%swiftmailer.mailer.'.$name.'.transport.smtp.timeout%'))
->addMethodCall('setSourceIp', array('%swiftmailer.mailer.'.$name.'.transport.smtp.source_ip%'))
->addMethodCall('setHost', array(sprintf('%%swiftmailer.mailer.%s.transport.smtp.host%%', $name)))
->addMethodCall('setPort', array(sprintf('%%swiftmailer.mailer.%s.transport.smtp.port%%', $name)))
->addMethodCall('setEncryption', array(sprintf('%%swiftmailer.mailer.%s.transport.smtp.encryption%%', $name)))
->addMethodCall('setTimeout', array(sprintf('%%swiftmailer.mailer.%s.transport.smtp.timeout%%', $name)))
->addMethodCall('setSourceIp', array(sprintf('%%swiftmailer.mailer.%s.transport.smtp.source_ip%%', $name)))
;
$container->setAlias(sprintf('swiftmailer.mailer.%s.transport', $name), sprintf('swiftmailer.mailer.%s.transport.%s', $name, $transport));
} elseif ('sendmail' === $transport) {
Expand Down

0 comments on commit ad32530

Please sign in to comment.