Skip to content

[Messenger] pass the transport name to the factory #32526

@Tobion

Description

@Tobion

Description
We have a lot of exchanges/queues and need to create a custom transport for each one using the Symfony\Component\Messenger\Transport\TransportFactoryInterface. It would be very useful to receive the configured transport name as a parameter to \Symfony\Component\Messenger\Transport\TransportFactoryInterface::createTransport(string $dsn, array $options, SerializerInterface $serializer). We could just forward the transport name as an option which does not require a signature change.
The current solution is to manually add the transport name to the options for each transport which is prone to copy-paste errors.

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