You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.3 KiB
31 lines
1.3 KiB
framework: |
|
messenger: |
|
# Uncomment this (and the failed transport below) to send failed messages to this transport for later handling. |
|
# failure_transport: failed |
|
|
|
transports: |
|
async: |
|
dsn: '%env(MESSENGER_TRANSPORT_DSN)%' |
|
options: |
|
stream: '%env(APP_ENV)%:messenger:async' # dev/prod get different keys |
|
group: '%env(APP_ENV)%' |
|
consumer: 'consumer-%env(APP_ENV)%' |
|
delete_after_ack: true |
|
redeliver_timeout: 600 |
|
# https://symfony.com/doc/current/messenger.html#transport-configuration |
|
# async: '%env(MESSENGER_TRANSPORT_DSN)%' |
|
# failed: 'doctrine://default?queue_name=failed' |
|
# sync: 'sync://' |
|
|
|
routing: |
|
# Route your messages to the transports |
|
'App\Message\FetchCommentsMessage': async |
|
'App\Message\FetchAuthorArticlesMessage': async |
|
|
|
# when@test: |
|
# framework: |
|
# messenger: |
|
# transports: |
|
# # replace with your transport name here (e.g., my_transport: 'in-memory://') |
|
# # For more Messenger testing tools, see https://github.com/zenstruck/messenger-test |
|
# async: 'in-memory://'
|
|
|