@@ -107,7 +107,7 @@ protected function configureMailer($name, array $mailer, ContainerBuilder $conta
107
107
108
108
$ container ->setParameter (sprintf ('swiftmailer.mailer.%s.transport.name ' , $ name ), $ transport );
109
109
110
- $ transportId = in_array ($ transport , array ('smtp ' , 'mail ' , ' sendmail ' , 'null ' ))
110
+ $ transportId = in_array ($ transport , array ('smtp ' , 'sendmail ' , 'null ' ))
111
111
? sprintf ('swiftmailer.mailer.%s.transport.%s ' , $ name , $ transport )
112
112
: $ transport ;
113
113
@@ -204,13 +204,6 @@ protected function configureMailerTransport($name, array $mailer, ContainerBuild
204
204
->setConfigurator (array (new Reference (sprintf ('swiftmailer.transport.configurator.%s ' , $ name )), 'configure ' ))
205
205
;
206
206
207
- $ container ->setAlias (sprintf ('swiftmailer.mailer.%s.transport ' , $ name ), sprintf ('swiftmailer.mailer.%s.transport.%s ' , $ name , $ transport ));
208
- } elseif ('mail ' === $ transport ) {
209
- $ definitionDecorator = $ this ->createChildDefinition (sprintf ('swiftmailer.transport.%s.abstract ' , $ transport ));
210
- $ container
211
- ->setDefinition (sprintf ('swiftmailer.mailer.%s.transport.%s ' , $ name , $ transport ), $ definitionDecorator )
212
- ->addArgument (new Reference (sprintf ('swiftmailer.mailer.%s.transport.eventdispatcher ' , $ name )))
213
- ;
214
207
$ container ->setAlias (sprintf ('swiftmailer.mailer.%s.transport ' , $ name ), sprintf ('swiftmailer.mailer.%s.transport.%s ' , $ name , $ transport ));
215
208
} elseif ('null ' === $ transport ) {
216
209
$ definitionDecorator = $ this ->createChildDefinition ('swiftmailer.transport.null.abstract ' );
0 commit comments