-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Mailer] 6.2 dev - MessageEvent listener not called #47989
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
Comments
Thanks for the report. I suspect this is due to #47191 changing the dispatched event name when extending |
Previously this would work. But now in my tests the event that is fired is |
I do think that's the case - previously I guess this event would have been called and should be ignored because it was a queued event. But it's better to have this separate I agree. |
Would you have any recommendation on how to ensure during tests, when I have disabled transports that I am testing for listening to the event properly? Is it worth in the component, when transport is disabled, still emitting that event? Looking at the |
I do think this is a BC break we should fix. /cc @fabpot |
Also to do with messenger being installed, even is I set to disable the bus. I'm working through to see what I can find though :)
|
No worry, thanks for testing the beta! |
Sure thing. I'll delete other comments here and open one for this other issue. |
Should be fixed by #47992 |
Thanks, shame to revert the change but appreciate your fast response and fix time! |
This was 1 of 3 issues found unfortunately, but happy to be running tests on the beta branches and able to give you all a heads up :) |
No big deal, the new feature keeps working despite reverting that part.
Thanks to you! |
This seems related to #47383. |
This PR was merged into the 6.2 branch. Discussion ---------- [Mailer] Fix BC breaking event name change | Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #47989, Fix #47383 | License | MIT | Doc PR | - While I get the motivation for introducing this `QueuingMessageEvent` child event in #47191, it's a BC break that is difficult to circumvent due to the fact it's an event (the parent may still be used as it's not deprecated). So I propose to revert its addition and just add the needed stamp-related methods to the original event instead. Commits ------- cb64938 [Mailer] Fix BC breaking event name change
Symfony version(s) affected
6.2-dev
Description
Working fine on current 6.2 branch.
I define an event listener like this:
However the handler is no longer being called.
How to reproduce
I'm trying to work out why the
AbstractTransport::send
method does not appear to be called anymore and why theMessageEvent
event listener would not be fired.Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: