Skip to content

Commit ff8f32e

Browse files
committed
feature #50296 [Notifier] Add Brevo bridge (formerly Sendinblue) (PEtanguy)
This PR was squashed before being merged into the 6.4 branch. Discussion ---------- [Notifier] Add Brevo 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 notifier. 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 mailer PR: symfony/symfony#50302 Commits ------- 731f9b02ef [Notifier] Add Brevo bridge (formerly Sendinblue)
2 parents 2ab842a + 9053a9a commit ff8f32e

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

Exception/UnsupportedSchemeException.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ class UnsupportedSchemeException extends LogicException
2828
'class' => Bridge\Bandwidth\BandwidthTransportFactory::class,
2929
'package' => 'symfony/bandwidth-notifier',
3030
],
31+
'brevo' => [
32+
'class' => Bridge\Brevo\BrevoTransportFactory::class,
33+
'package' => 'symfony/brevo-notifier',
34+
],
3135
'chatwork' => [
3236
'class' => Bridge\Chatwork\ChatworkTransportFactory::class,
3337
'package' => 'symfony/chatwork-notifier',

Tests/Exception/UnsupportedSchemeExceptionTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public static function setUpBeforeClass(): void
2929
Bridge\AllMySms\AllMySmsTransportFactory::class => false,
3030
Bridge\AmazonSns\AmazonSnsTransportFactory::class => false,
3131
Bridge\Bandwidth\BandwidthTransportFactory::class => false,
32+
Bridge\Brevo\BrevoTransportFactory::class => false,
3233
Bridge\Chatwork\ChatworkTransportFactory::class => false,
3334
Bridge\Clickatell\ClickatellTransportFactory::class => false,
3435
Bridge\ClickSend\ClickSendTransportFactory::class => false,
@@ -115,6 +116,7 @@ public static function messageWhereSchemeIsPartOfSchemeToPackageMapProvider(): \
115116
yield ['allmysms', 'symfony/all-my-sms-notifier'];
116117
yield ['sns', 'symfony/amazon-sns-notifier'];
117118
yield ['bandwidth', 'symfony/bandwidth-notifier'];
119+
yield ['brevo', 'symfony/brevo-notifier'];
118120
yield ['clickatell', 'symfony/clickatell-notifier'];
119121
yield ['clicksend', 'symfony/click-send-notifier'];
120122
yield ['contact-everyone', 'symfony/contact-everyone-notifier'];

Transport.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ final class Transport
3131
Bridge\AllMySms\AllMySmsTransportFactory::class,
3232
Bridge\AmazonSns\AmazonSnsTransportFactory::class,
3333
Bridge\Bandwidth\BandwidthTransportFactory::class,
34+
Bridge\Brevo\BrevoTransportFactory::class,
3435
Bridge\Chatwork\ChatworkTransportFactory::class,
3536
Bridge\Clickatell\ClickatellTransportFactory::class,
3637
Bridge\ClickSend\ClickSendTransportFactory::class,

0 commit comments

Comments
 (0)