8000 [Mailer] Add `MessageSentEvent` by pableu · Pull Request #38519 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Mailer] Add MessageSentEvent #38519

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

Closed
wants to merge 1 commit into from
Closed

[Mailer] Add MessageSentEvent #38519

wants to merge 1 commit into from

Conversation

pableu
Copy link
Contributor
@pableu pableu commented Oct 11, 2020

… the transport

Q A
Branch? 5.x
Bug fix? no
New feature? yes
Deprecations? no
Tickets -
License MIT
Doc PR -

This would be an alternative way to access the SentMessage after the message has been sent through a transport. More general than #38517, but the DX might be worse because it takes you of of the current program flow.

But also nicer because it always works the same way, with messenger and without.

@Nyholm
Copy link
Member
Nyholm commented Oct 11, 2020

The current implementation will only dispatch this notification when we are not using a MessageBus.

It will also not dispatch an event when we are using the transport directly. Ie, it makes it hard for a listener to know if it sees all events or not.

But didn't we solve the problem in #38517? Or is this a new scenario?

@fabpot fabpot closed this Oct 12, 2020
@xabbuh xabbuh added this to the 5.x milestone Oct 12, 2020
@nicolas-grekas nicolas-grekas modified the milestones: 5.x, 5.2 Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants
0