Skip to content

Allow other symfony/messenger transports than doctrine #533

@dheineman

Description

@dheineman

The repman environment file has a section for symfony/messenger to allow you to choose a transport by configuring a DSN.

repman/.env

Lines 41 to 46 in 174c381

###> symfony/messenger ###
# Choose one of the transports below
# MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages
# MESSENGER_TRANSPORT_DSN=doctrine://default
# MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages
###< symfony/messenger ###

However the symfony/messenger config yaml has the doctrine transport hardcoded instead of using this environment variable

transports:
async: 'doctrine://default?auto_setup=false'
failed: 'doctrine://default?queue_name=failed&auto_setup=false'

Similarly only the symfony/doctrine-messenger is required in the composer.json file.

"symfony/doctrine-messenger": "5.3.*",

It there any specific reason this was hardcoded to doctrine? I would like to use the redis transport as it allows multiple workers consuming the same queue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions