Skip to content

Commit 089eef6

Browse files
author
symfony-flex-server[bot]
authored
Merge pull request #590
2 parents 5126c0e + cc7252a commit 089eef6

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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]

symfony/messenger/4.3/manifest.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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</>

0 commit comments

Comments
 (0)