Skip to content

[Messenger] Allow AsMessageHandler to configure routing #46909

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy