Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c17dc7a

Browse files
committed
Add buses to messenger.yaml
1 parent 5507829 commit c17dc7a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

config/packages/messenger.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,22 @@ framework:
22
messenger:
33
# Uncomment this (and the failed transport below) to send failed messages to this transport for later handling.
44
# failure_transport: failed
5+
default_bus: command.bus
6+
7+
buses:
8+
command.bus: ~
9+
event.bus: ~
510

611
transports:
712
# https://symfony.com/doc/current/messenger.html#transport-configuration
813
async: '%env(MESSENGER_TRANSPORT_DSN)%'
914
# failed: 'doctrine://default?queue_name=failed'
10-
# sync: 'sync://'
15+
sync: 'sync://'
1116

1217
routing:
1318
# Route your messages to the transports
14-
'App\Message\PurchaseConfirmationNotification': async
19+
# 'App\Message\PurchaseConfirmationNotification': async
20+
'App\Message\Command\SaveOrder': sync
1521

1622
# when@test:
1723
# framework:

0 commit comments

Comments
 (0)