Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[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

Conversation

@maxim-dovydenok
Copy link
Contributor

@maxim-dovydenokmaxim-dovydenok commentedMay 12, 2021
edited by OskarStark
Loading

QA
Branch?5.4
Bug fix?no
New feature?yes
Deprecations?no
TicketsFix#41106
LicenseMIT
Doc PRsymfony/symfony-docs#...

AddedAsMessageHandler attribute to autoconfigure message handler

ro0NL reacted with thumbs up emoji
@chalasrchalasr added this to the5.x milestoneMay 14, 2021
@OskarStarkOskarStark changed the title[Messenger] Add AsMessageHandler attribute to declare message handlers[Messenger] AddAsMessageHandler attribute to declare message handlersAug 1, 2021
*/
#[\Attribute(\Attribute::TARGET_CLASS)]
class AsMessageHandler
{
Copy link
Contributor

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
Copy link
Member

Closing in favor of#43588
Thanks for opening.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@OskarStarkOskarStarkOskarStark left review comments

@srozesrozeAwaiting requested review from sroze

@nicolas-grekasnicolas-grekasAwaiting requested review from nicolas-grekas

+1 more reviewer

@ruudkruudkruudk left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

[Messenger] Message attributes

6 participants

@maxim-dovydenok@nicolas-grekas@ruudk@OskarStark@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp