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

Commit e1975b5

Browse files
committed
don't support deprecated mail transport
1 parent 1e57168 commit e1975b5

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

DependencyInjection/SwiftmailerExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ protected function configureMailer($name, array $mailer, ContainerBuilder $conta
107107

108108
$container->setParameter(sprintf('swiftmailer.mailer.%s.transport.name', $name), $transport);
109109

110-
$transportId = in_array($transport, array('smtp', 'mail', 'sendmail', 'null'))
110+
$transportId = in_array($transport, array('smtp', 'sendmail', 'null'))
111111
? sprintf('swiftmailer.mailer.%s.transport.%s', $name, $transport)
112112
: $transport;
113113

DependencyInjection/SwiftmailerTransportFactory.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,6 @@ public static function createTransport(array $options, RequestContext $requestCo
6464

6565
$smtpTransportConfigurator = new SmtpTransportConfigurator(null, $requestContext);
6666
$smtpTransportConfigurator->configure($transport);
67-
} elseif ('mail' === $options['transport']) {
68-
$transport = new \Swift_Transport_MailTransport(
69-
new \Swift_Transport_SimpleMailInvoker(),
70-
$eventDispatcher
71-
);
7267
} elseif ('null' === $options['transport']) {
7368
$transport = new \Swift_Transport_NullTransport($eventDispatcher);
7469
} else {

0 commit comments

Comments
 (0)