Commit e8044d7b authored by catch's avatar catch
Browse files

Issue #3420372 by drubb, jurgenhaas, znerol, m.stenta, mkdok: Core Symfony...

Issue #3420372 by drubb, jurgenhaas, znerol, m.stenta, mkdok: Core Symfony Mailer throws error on transport shutdown

(cherry picked from commit 542225a6)
parent 15a5c7e6
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -166,7 +166,7 @@ protected function getMailer(): MailerInterface {
      // mails into the code path (i.e., event subscribers) of the new API.
      // Therefore, this plugin deliberately refrains from injecting the event
      // dispatcher.
      $factories = Transport::getDefaultFactories(logger: $this->logger);
      $factories = Transport::getDefaultFactories();
      $transportFactory = new Transport($factories);
      $transport = $transportFactory->fromDsnObject($dsnObject);
      $this->mailer = new Mailer($transport);