Closed
Description
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