-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Messenger] Allow AsMessageHandler attribute on methods #45273
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
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 |
The low-deps tests for FrameworkBundle are failing because current 6.1 branch of Messenger does not allow the (The Psalm and Fabbot failures are not related to the changes in this PR.) |
Hey! I think @alirezamirsepassi has recently worked with this code. Maybe they can help review this? Cheers! Carsonbot |
7daf277
to
fc19ed5
Compare
I've fixed the deps issue to fix the tests. |
Thank you @mjpvandenberg. |
… methods (mjpvandenberg) This PR was merged into the 6.1 branch. Discussion ---------- [Messenger] AsMessageHandler can be used on class methods Documents symfony/symfony#45273 Commits ------- 2bf52dd AsMessageHandler can be used on class methods
Similar to the
#[AsEventListener]
attribute, this PR allows for using the#[AsMessageHandler]
attribute on methods.Combining class-level and method-level usage inside a single class is supported, as shown by the adapted
MessengerPassTest::testTaggedMessageHandler
test.