File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -11,4 +11,4 @@ framework:
11
11
12
12
routing :
13
13
# Route your messages to the transports
14
- # 'App\Message\YourMessage': [ async, sync]
14
+ # 'App\Message\YourMessage': async
Original file line number Diff line number Diff line change 3
3
"config/" : " %CONFIG_DIR%/"
4
4
},
5
5
"env" : {
6
- "#1" : " To use AMQP, also run ‘composer require amqp’ " ,
6
+ "#1" : " Choose one of the transports below " ,
7
7
"#2" : " MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages" ,
8
- "#3" : " MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages"
8
+ "#3" : " MESSENGER_TRANSPORT_DSN=doctrine://default" ,
9
+ "#4" : " MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages"
9
10
},
10
11
"aliases" : [" messenger" ],
11
12
"conflict" : {
Original file line number Diff line number Diff line change 3
3
<bg=blue;fg=white> </>
4
4
5
5
* You're ready to use the Messenger component. You can define your own message buses
6
- or start using the default one right now by injecting the <info>messenger.bus.default </info> service
7
- or typehinting <info>Symfony\Component\Messenger\MessageBusInterface</info> in your code.
6
+ or start using the default one right now by injecting the <info>message_bus </info> service
7
+ or type-hinting <info>Symfony\Component\Messenger\MessageBusInterface</info> in your code.
8
8
9
9
* To send messages to a transport and handle them asynchronously:
10
10
11
- 1. Uncomment the <comment >MESSENGER_TRANSPORT_DSN</> env var in .env
12
- and <comment >framework.messenger.transports.async</> in config/packages/messenger.yaml;
13
- 2. Route your message classes to the async transport in config/packages/messenger.yaml.
11
+ 1. Uncomment the <info >MESSENGER_TRANSPORT_DSN</> env var in <comment> .env</>
12
+ and <info >framework.messenger.transports.async</> in <comment> config/packages/messenger.yaml</> ;
13
+ 2. Route your message classes to the async transport in <comment> config/packages/messenger.yaml</> .
14
14
15
- * <fg=blue>Read</> the documentation at <comment>https://symfony.com/doc/master /messenger.html</>
15
+ * <fg=blue>Read</> the documentation at <comment>https://symfony.com/doc/current /messenger.html</>
You can’t perform that action at this time.
0 commit comments