Commit bcb1ba5
committed
minor #62110 [Messenger] Simplify code (HypeMC)
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 codeFile tree
2 files changed
+9
-10
lines changed- src/Symfony/Component/Messenger
- Event
- Middleware
2 files changed
+9
-10
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
Lines changed: 7 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | 50 | | |
52 | 51 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
61 | 60 | | |
62 | 61 | | |
63 | 62 | | |
| |||
0 commit comments