Skip to content

Conversation

@HypeMC
Copy link
Member

@HypeMC HypeMC commented Sep 25, 2025

Q A
Branch? 7.4
Bug fix? no
New feature? yes
Deprecations? no
Issues -
License MIT

This PR adds a MessageSentToTransportsEvent, that is dispatched only after a message was sent to at least one transport. This can be useful, for example, for additional monitoring.

@carsonbot carsonbot added this to the 7.4 milestone Sep 25, 2025
nicolas-grekas added a commit that referenced this pull request Oct 20, 2025
This PR was merged into the 7.4 branch.

Discussion
----------

[Messenger] Simplify code

| Q             | A
| ------------- | ---
| Branch?       | 7.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        | -
| License       | MIT

Noticed while working on #61843.

There's no reason for the event to be dispatched inside the loop anymore:

1. The event was [originally dispatched outside the loop](#30650).
2. It was later [moved inside the loop](#30676) because of the retry mechanism.
3. [The retry mechanism was later extracted](#34185), so there's no longer a need for the event to be dispatched inside the loop.

Commits
-------

beeb4b9 [Messenger] Simplify code
@HypeMC HypeMC force-pushed the add-messagesenttotransportsevent branch from 5d48257 to 406a4cc Compare October 20, 2025 08:09
@nicolas-grekas
Copy link
Member

Thank you @HypeMC.

@nicolas-grekas nicolas-grekas merged commit 93d4548 into symfony:7.4 Oct 24, 2025
12 of 13 checks passed
@HypeMC HypeMC deleted the add-messagesenttotransportsevent branch October 24, 2025 15:54
This was referenced Oct 27, 2025
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.

3 participants