Skip to content

[Messenger] Allow AsMessageHandler to configure routing #46909

Closed
@KDederichs

Description

@KDederichs

Description

Since we have the AsMessageHandler attribuite since 6.1 I thought it would be nice (for visibility/maintainablility mostly) if you could also do the Routing in this attribute.
At the moment it looks to me like you still need to add all the Message classes to the yaml, which always is a bit messy since you have somewhat of a disassociation between the code and the config.

Example

If possible I'd just do something like this:

#[AsMessageHandler(
   routes: string|string[]
)]

this would then replace the yaml config

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions