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 4
4
},
5
5
"env" : {
6
6
"#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 "
10
10
},
11
11
"aliases" : [" messenger" ],
12
12
"conflict" : {
Original file line number Diff line number Diff line change 4
4
5
5
* To send messages to a transport and handle them asynchronously:
6
6
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
8
8
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</>.
10
12
11
13
* <fg=blue>Read</> the documentation at <comment>https://symfony.com/doc/current/messenger.html</>
Original file line number Diff line number Diff line change 2
2
"aliases" : [" webapp" ],
3
3
"copy-from-recipe" : {
4
4
"config/" : " %CONFIG_DIR%/"
5
- },
6
- "env" : {
7
- "MESSENGER_TRANSPORT_DSN" : " doctrine://default?auto_setup=0"
8
5
}
9
6
}
You can’t perform that action at this time.
0 commit comments