Messenger configuration
This commit is contained in:
parent
d86c1fa0f8
commit
af801110aa
2
api/.env
2
api/.env
@ -18,5 +18,5 @@ DATABASE_URL="sqlite:///%kernel.project_dir%/var/app.db"
|
|||||||
###< doctrine/doctrine-bundle ###
|
###< doctrine/doctrine-bundle ###
|
||||||
|
|
||||||
###> symfony/messenger ###
|
###> symfony/messenger ###
|
||||||
MESSENGER_TRANSPORT_DSN="doctrine://default"
|
APP_EVENT_QUEUE_DSN="doctrine://default"
|
||||||
###< symfony/messenger ###
|
###< symfony/messenger ###
|
||||||
|
@ -1,13 +1,11 @@
|
|||||||
|
parameters:
|
||||||
|
env(APP_EVENT_QUEUE): "doctrine://default"
|
||||||
|
|
||||||
framework:
|
framework:
|
||||||
messenger:
|
messenger:
|
||||||
# Uncomment this (and the failed transport below) to send failed messages to this transport for later handling.
|
transports:
|
||||||
# failure_transport: failed
|
main: '%env(resolve:APP_EVENT_QUEUE)%'
|
||||||
|
sync: 'sync://'
|
||||||
|
|
||||||
transports:
|
routing:
|
||||||
# https://symfony.com/doc/current/messenger.html#transport-configuration
|
'App\Message\UpdateDataMessage': main
|
||||||
async: '%env(MESSENGER_TRANSPORT_DSN)%'
|
|
||||||
# failed: 'doctrine://default?queue_name=failed'
|
|
||||||
sync: 'sync://'
|
|
||||||
|
|
||||||
routing:
|
|
||||||
'App\Message\UpdateDataMessage': async
|
|
||||||
|
Loading…
Reference in New Issue
Block a user