Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Messenger] Resolve handled classes when only method in tag is provided#44971
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
[Messenger] Resolve handled classes when only method in tag is provided#44971
Uh oh!
There was an error while loading.Please reload this page.
Conversation
carsonbot commentedJan 10, 2022
Hey! I see that this is your first PR. That is great! Welcome! Symfony has acontribution guide which I suggest you to read. In short:
Review the GitHub status checks of your pull request and try to solve the reported issues. If some tests are failing, try to see if they are failing because of this change. When two Symfony core team members approve this change, it will be merged and you will become an official Symfony contributor! I am going to sit back now and wait for the reviews. Cheers! Carsonbot |
b0c3eae toaedddfeComparecarsonbot commentedJan 11, 2022
Hey! I think@monteiro has recently worked with this code. Maybe they can help review this? Cheers! Carsonbot |
ogizanagi commentedJan 11, 2022
I think this should go to 6.1 as a DX improvement. It does not qualify as a bug fix. |
d49d490 tof69f116Compareangelov commentedJan 11, 2022
Thanks! I though the same, but wasn't sure. I updated the PR to point towards 6.1 |
ede276e to8d12870Compareangelov commentedJan 12, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
The failures in the checks seem unrelated to me? |
src/Symfony/Component/Messenger/DependencyInjection/MessengerPass.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Messenger/DependencyInjection/MessengerPass.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Messenger/DependencyInjection/MessengerPass.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
ogizanagi commentedJan 13, 2022
@angelov : Could you add an entry about this in the Messenger CHANGELOG.md 6.1 section ? |
angelov commentedJan 13, 2022
@ogizanagi thanks! Updated the changelog, I hope it's alright. |
d71ec58 to780b7daCompareogizanagi commentedJan 14, 2022
Thank you@angelov. |
Uh oh!
There was an error while loading.Please reload this page.
When tagging Messenger handlers, if the
methodattribute is set, the compiler pass does not resolve the message type before handling it - it requires thehandlesattribute to be set as well.With this PR, the message type is being resolved even if method other than
__invokeis being used.I'm not sure if this is a bug fix or just an improvement :/