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] AddAsMessageHandler attribute to declare message handlers#41202
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
AsMessageHandler attribute to declare message handlers| */ | ||
| #[\Attribute(\Attribute::TARGET_CLASS)] | ||
| class AsMessageHandler | ||
| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
It's also possible to configure an optionalbus andfrom_transport on themessenger.message_handler. Maybe that should be added to the attribute as well?
https://symfony.com/doc/current/messenger.html#manually-configuring-handlers
nicolas-grekas commentedOct 20, 2021
Closing in favor of#43588 |
Uh oh!
There was an error while loading.Please reload this page.
Added
AsMessageHandlerattribute to autoconfigure message handler