Skip to content

[Messenger] Better error message when routing to an invalid transport #31613

@weaverryan

Description

@weaverryan

Description
If you try to route a message to a non-existent transport/sender, the message is not very clear:

The service "messenger.middleware.send_message" has a dependency on a non-existent service "async".

We need to catch this earlier, probably in a compiler pass. It could say:

The App\Message\SmsNotification class is being routed to a sender called async. This is not a valid transport or service id.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DXDX = Developer eXperience (anything that improves the experience of using Symfony)FeatureMessenger

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions