-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[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 our terms of service and privacy 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
Conversation
|
Hey! I see that this is your first PR. That is great! Welcome! Symfony has a contribution 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 to
aedddfe
Compare
|
Hey! I think @monteiro has recently worked with this code. Maybe they can help review this? Cheers! Carsonbot |
|
I think this should go to 6.1 as a DX improvement. It does not qualify as a bug fix. |
d49d490 to
f69f116
Compare
Thanks! I though the same, but wasn't sure. I updated the PR to point towards 6.1 |
ede276e to
8d12870
Compare
|
The failures in the checks seem unrelated to me? |
src/Symfony/Component/Messenger/DependencyInjection/MessengerPass.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Messenger/DependencyInjection/MessengerPass.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Messenger/DependencyInjection/MessengerPass.php
Outdated
Show resolved
Hide resolved
|
@angelov : Could you add an entry about this in the Messenger CHANGELOG.md 6.1 section ? |
|
@ogizanagi thanks! Updated the changelog, I hope it's alright. |
d71ec58 to
780b7da
Compare
|
Thank you @angelov. |
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 :/