-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Notifier] add SentMessageEvent
and FailedMessageEvent
#39601
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
[Notifier] add SentMessageEvent
and FailedMessageEvent
#39601
Conversation
97876db
to
c28ea75
Compare
src/Symfony/Component/Notifier/EventListener/NotificationLoggerListener.php
Outdated
Show resolved
Hide resolved
b8bb755
to
d6c7aa2
Compare
b37752e
to
34eb92a
Compare
the failed test seems not related |
091dff1
to
9c1ccde
Compare
394e2e4
to
51941e0
Compare
src/Symfony/Component/Notifier/Tests/Event/SentMessageEventTest.php
Outdated
Show resolved
Hide resolved
f463ebb
to
6af363a
Compare
can you give us a final review here @jderusse ? Thanks |
friendly pump 😃 |
SentMessageEvent
and FailedMessageEvent
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.
I see Travis tests, did you rebased the PR recently?
c2531e7
to
df0f304
Compare
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, but we need to add an entry to src/Symfony/Component/Notifier/CHANGELOG.md
.
Updated, let me know if it's not good. |
0a9af2b
to
9cef413
Compare
src/Symfony/Component/Notifier/Tests/Event/SentMessageEventTest.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Notifier/Tests/Event/SentMessageEventTest.php
Outdated
Show resolved
Hide resolved
234621d
to
025256d
Compare
Thank you Smaine. |
Dispatch a new event
SentMessageEvent
which is dispatched once the notification is sent. TheSymfony\Component\Notifier\Transport\AbstractTransport
return an instance ofSentMessage
that contains the original message + an id that can be returned by the API it can be helpful to pass this object to the event.Dispatch a new event
FailedMessageEvent
which is dispatched if sending the notification fails it can be helpful for a retry strategy