Skip to content

Commit

Permalink
Pass PSR-14 EventDispatcher to mailer transport to support notificati…
Browse files Browse the repository at this point in the history
…on emails
  • Loading branch information
tehplague committed Mar 28, 2024
1 parent 1e5c555 commit 9181940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/Mail/MailerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function __construct(
public function buildMailer(): MailerInterface
{
$mailDsn = $this->configurationService['[mail][dsn]'];
$transport = Transport::fromDsn($mailDsn);
$transport = Transport::fromDsn($mailDsn, $this->eventDispatcher);

return new Mailer($transport, null, $this->eventDispatcher);
}
Expand Down

0 comments on commit 9181940

Please sign in to comment.