8000 [Messenger] Add options validation to all transports · Issue #32575 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[Messenger] Add options validation to all transports #32575
Closed
@weaverryan

Description

@weaverryan

Description
Suppose the following config:

framework:
    messenger:
        transports:
            async:
                dsn: '%env(MESSENGER_TRANSPORT_DSN)%'
                options:
                    queue_name: high

If MESSENGER_TRANSPORT_DSN uses the doctrine transport, this is great. But if you're using a different transport (e.g. amqp) then the queue_name is an invalid option. Currently, no exception is thrown - the option is just silently ignored. I think that all transports should strictly validate the options being passed to it.

Ref: symfony/symfony-docs#11967

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0