File tree Expand file tree Collapse file tree 3 files changed +43
-0
lines changed Expand file tree Collapse file tree 3 files changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ framework :
2
+ messenger :
3
+ # Uncomment this (and the failed transport below) to send failed messages to this transport for later handling.
4
+ # failure_transport: failed
5
+
6
+ transports :
7
+ # https://symfony.com/doc/current/messenger.html#transports
8
+ # async: '%env(MESSENGER_TRANSPORT_DSN)%'
9
+ # failed: 'doctrine://default?queue_name=failed'
10
+ # sync: 'sync://'
11
+
12
+ routing :
13
+ # Route your messages to the transports
14
+ # 'App\Message\YourMessage': [async, sync]
Original file line number Diff line number Diff line change
1
+ {
2
+ "copy-from-recipe" : {
3
+ "config/" : " %CONFIG_DIR%/"
4
+ },
5
+ "env" : {
6
+ "#1" : " To use AMQP, also run ‘composer require amqp’" ,
7
+ "#2" : " MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages" ,
8
+ "#3" : " MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages"
9
+ },
10
+ "aliases" : [" messenger" ],
11
+ "conflict" : {
12
+ "symfony/framework-bundle" : " <4.3"
13
+ }
14
+ }
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
+ * To send messages to a transport and handle them asynchronously:
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.
14
+
15
+ * <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