-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Notifier] Add Brevo bridge (formerly Sendinblue) #50296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hey! To help keep things organized, we don't allow "Draft" pull requests. Could you please click the "ready for review" button or close this PR and open a new one when you are done? Note that a pull request does not have to be "perfect" or "ready for merge" when you first open it. We just want it to be ready for a first review. Cheers! Carsonbot |
9a467e7
to
9622d22
Compare
@PEtanguy are you also working on the mailer bridge ? |
@stof yes i am waiting to merge this PR to open the Mailer one. The tests are failing because of the deprecation trigger |
You need to mark tests as And maybe the deprecation need to be triggered only if the factory is actually used instead of triggering it as soon as it is autoloaded, in case FrameworkBundle registers all installed factories. |
6.3 | ||
--- | ||
|
||
* Added the bridge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should you mentioned that this is the replacement of https://packagist.org/packages/symfony/sendinblue-notifier?
and also in the other composer, mark it as deprecated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Absolutely!
3adf0d1
to
ae9867b
Compare
c90b1cf
to
b4dcd18
Compare
private string $apiKey; | ||
private string $sender; | ||
|
||
public function __construct(#[\SensitiveParameter] string $apiKey, string $sender, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can use constructor property promotion for apiKey and sender
f079a58
to
6746d3c
Compare
6746d3c
to
6cb3054
Compare
6.4 | ||
--- | ||
|
||
* Added the bridge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Added the bridge | |
* Add the bridge |
We can add an info about a replacement in the README; no need for it in the changeling file. From a code POV this is simply a new bridge
@@ -0,0 +1,25 @@ | |||
Brevo Notifier | |||
=================== |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
=================== | |
============== |
@@ -0,0 +1,25 @@ | |||
Brevo Notifier | |||
=================== | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A note about the renaming can be put here
{ | ||
"name": "symfony/brevo-notifier", | ||
"type": "symfony-notifier-bridge", | ||
"description": "Symfony Brevo Notifier Bridge - formerly Sendinblue", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"description": "Symfony Brevo Notifier Bridge - formerly Sendinblue", | |
"description": "Symfony Brevo Notifier Bridge", |
"require": { | ||
"php": ">=8.1", | ||
"symfony/http-client": "^5.4|^6.0", | ||
"symfony/notifier": "^6.3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"symfony/notifier": "^6.3" | |
"symfony/notifier": "^6.4" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after my comments and the revert of src/Symfony/Component/Notifier/Bridge/Sendinblue/*
3053f74
to
731f9b0
Compare
Thank you @PEtanguy. |
… (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: #50296 Commits ------- f537358 [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)
… (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)
… (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)
Hello,
This PR is aimed at updating the config for the sendinblue notifier.
As you might have seen, Sendinblue has rebranded to Brevo and also rewrote their apis.
This change ensure compatibility with the new endpoints and removes any reference to Sendinblue.
This is the mailer PR: #50302