Skip to content

Commit

Permalink
feature #50296 [Notifier] Add Brevo bridge (formerly Sendinblue) (PEt…
Browse files Browse the repository at this point in the history
…anguy)

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)
  • Loading branch information
fabpot committed Jul 9, 2023
2 parents fb96cb1 + 228b148 commit e21607a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions DependencyInjection/FrameworkExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2721,6 +2721,7 @@ private function registerNotifierConfiguration(array $config, ContainerBuilder $
NotifierBridge\AllMySms\AllMySmsTransportFactory::class => 'notifier.transport_factory.all-my-sms',
NotifierBridge\AmazonSns\AmazonSnsTransportFactory::class => 'notifier.transport_factory.amazon-sns',
NotifierBridge\Bandwidth\BandwidthTransportFactory::class => 'notifier.transport_factory.bandwidth',
NotifierBridge\Brevo\BrevoTransportFactory::class => 'notifier.transport_factory.brevo',
NotifierBridge\Chatwork\ChatworkTransportFactory::class => 'notifier.transport_factory.chatwork',
NotifierBridge\Clickatell\ClickatellTransportFactory::class => 'notifier.transport_factory.clickatell',
NotifierBridge\ClickSend\ClickSendTransportFactory::class => 'notifier.transport_factory.click-send',
Expand Down
4 changes: 4 additions & 0 deletions Resources/config/notifier_transports.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
->abstract()
->args([service('event_dispatcher'), service('http_client')->ignoreOnInvalid()])

->set('notifier.transport_factory.brevo', Bridge\Brevo\BrevoTransportFactory::class)
->parent('notifier.transport_factory.abstract')
->tag('texter.transport_factory')

->set('notifier.transport_factory.slack', Bridge\Slack\SlackTransportFactory::class)
->parent('notifier.transport_factory.abstract')
->tag('chatter.transport_factory')
Expand Down

0 comments on commit e21607a

Please sign in to comment.