Skip to content

Commit 3e2fbd4

Browse files
committed
feature #50302 [Mailer] New Brevo mailer bridge (formerly Sendinblue) (PEtanguy)
This PR was squashed before being merged into the 6.4 branch. Discussion ---------- [Mailer] New Brevo mailer bridge (formerly Sendinblue) | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | N/A | License | MIT | Doc PR | TODO Hello, This PR is aimed at updating the config for the sendinblue mailer. As you might have seen, Sendinblue has rebranded to [Brevo](https://developers.brevo.com/) and also rewrote their apis. This change ensure compatibility with the new endpoints and removes any reference to Sendinblue. This is the notifier PR: symfony/symfony#50296 Commits ------- f537358e5a [Mailer] New Brevo mailer bridge (formerly Sendinblue)
2 parents 19174e7 + 937e15f commit 3e2fbd4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2589,6 +2589,7 @@ private function registerMailerConfiguration(array $config, ContainerBuilder $co
25892589
}
25902590

25912591
$classToServices = [
2592+
MailerBridge\Brevo\Transport\BrevoTransportFactory::class => 'mailer.transport_factory.brevo',
25922593
MailerBridge\Google\Transport\GmailTransportFactory::class => 'mailer.transport_factory.gmail',
25932594
MailerBridge\Infobip\Transport\InfobipTransportFactory::class => 'mailer.transport_factory.infobip',
25942595
MailerBridge\MailerSend\Transport\MailerSendTransportFactory::class => 'mailer.transport_factory.mailersend',

Resources/config/mailer_transports.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
1313

1414
use Symfony\Component\Mailer\Bridge\Amazon\Transport\SesTransportFactory;
15+
use Symfony\Component\Mailer\Bridge\Brevo\Transport\BrevoTransportFactory;
1516
use Symfony\Component\Mailer\Bridge\Google\Transport\GmailTransportFactory;
1617
use Symfony\Component\Mailer\Bridge\Infobip\Transport\InfobipTransportFactory;
1718
use Symfony\Component\Mailer\Bridge\Mailchimp\Transport\MandrillTransportFactory;
@@ -44,6 +45,10 @@
4445
->parent('mailer.transport_factory.abstract')
4546
->tag('mailer.transport_factory')
4647

48+
->set('mailer.transport_factory.brevo', BrevoTransportFactory::class)
49+
->parent('mailer.transport_factory.abstract')
50+
->tag('mailer.transport_factory')
51+
4752
->set('mailer.transport_factory.gmail', GmailTransportFactory::class)
4853
->parent('mailer.transport_factory.abstract')
4954
->tag('mailer.transport_factory')

0 commit comments

Comments
 (0)