Skip to content

Commit 34fc421

Browse files
author
symfony-flex-server[bot]
authored
Merge pull request #395
2 parents 7634b67 + a2ead7b commit 34fc421

File tree

4 files changed

+38
-0
lines changed

4 files changed

+38
-0
lines changed

symfony/amqp-pack/1.0/manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"aliases": ["amqp"]
3+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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

symfony/messenger/4.1/manifest.json

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

0 commit comments

Comments
 (0)