File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 44 },
55 "env" : {
66 "#1" : " Choose one of the transports below" ,
7- "#2" : " MESSENGER_TRANSPORT_DSN=doctrine ://default " ,
8- "#3" : " MESSENGER_TRANSPORT_DSN=amqp ://guest:guest@ localhost:5672/%2f /messages" ,
9- "#4 " : " MESSENGER_TRANSPORT_DSN=redis ://localhost:6379/messages "
7+ "#2" : " MESSENGER_TRANSPORT_DSN=amqp ://guest:guest@localhost:5672/%2f/messages " ,
8+ "#3" : " MESSENGER_TRANSPORT_DSN=redis ://localhost:6379 /messages" ,
9+ "MESSENGER_TRANSPORT_DSN " : " doctrine ://default?auto_setup=0 "
1010 },
1111 "aliases" : [" messenger" ],
1212 "conflict" : {
Original file line number Diff line number Diff line change 44
55 * To send messages to a transport and handle them asynchronously:
66
7- 1. Uncomment the <info>MESSENGER_TRANSPORT_DSN</> env var in <comment>.env</>
7+ 1. Update the <info>MESSENGER_TRANSPORT_DSN</> env var in <comment>.env</> if needed
88 and <info>framework.messenger.transports.async</> in <comment>config/packages/messenger.yaml</>;
9- 2. Route your message classes to the async transport in <comment>config/packages/messenger.yaml</>.
9+ 2. (if using Doctrine) Generate a Doctrine migration <info>bin/console doctrine:migration:diff</>
10+ and execute it <info>bin/console doctrine:migration:migrate</>
11+ 3. Route your message classes to the async transport in <comment>config/packages/messenger.yaml</>.
1012
1113 * <fg=blue>Read</> the documentation at <comment>https://symfony.com/doc/current/messenger.html</>
Original file line number Diff line number Diff line change 22 "aliases" : [" webapp" ],
33 "copy-from-recipe" : {
44 "config/" : " %CONFIG_DIR%/"
5- },
6- "env" : {
7- "MESSENGER_TRANSPORT_DSN" : " doctrine://default?auto_setup=0"
85 }
96}
You can’t perform that action at this time.
0 commit comments