File tree Expand file tree Collapse file tree 4 files changed +38
-0
lines changed Expand file tree Collapse file tree 4 files changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "aliases" : [" amqp" ]
3
+ }
Original file line number Diff line number Diff line change
1
+ framework :
2
+ messenger :
3
+ transports :
4
+ # Uncomment the following line to enable a transport named "amqp"
5
+ # amqp: '%env(MESSENGER_ADAPTER_DSN)%'
6
+
7
+ routing :
8
+ # Route your messages to the transports
9
+ # 'App\Message\YourMessage': amqp
Original file line number Diff line number Diff line change
1
+ {
2
+ "copy-from-recipe" : {
3
+ "config/" : " %CONFIG_DIR%/"
4
+ },
5
+ "env" : {
6
+ "#1" : " MESSENGER_ADAPTER_DSN=amqp://guest:guest@localhost:5672/%2f/messages"
7
+ },
8
+ "aliases" : [" messenger" ]
9
+ }
Original file line number Diff line number Diff line change
1
+ <bg=blue;fg=white> </>
2
+ <bg=blue;fg=white> What's next? </>
3
+ <bg=blue;fg=white> </>
4
+
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.
8
+
9
+ * If you need to send messages to your broker, you can benefit from the built-in
10
+ AMQP transport by:
11
+
12
+ 1. Installing the AMQP pack by running <info>composer require amqp</>;
13
+ 2. Uncommenting the <comment>MESSENGER_ADAPTER_DSN</> env var
14
+ and <comment>framework.messanger.transports.amqp</> config;
15
+ 3. Routing your messages to the amqp sender.
16
+
17
+ * <fg=blue>Read</> the documentation at <comment>https://symfony.com/doc/master/messenger.html</>
You can’t perform that action at this time.
0 commit comments