Merge pull request #395

This commit is contained in:
symfony-flex-server[bot]
2018-05-16 19:01:43 +00:00
committed by GitHub
4 changed files with 38 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
{
"aliases": ["amqp"]
}
@@ -0,0 +1,9 @@
framework:
messenger:
transports:
# Uncomment the following line to enable a transport named "amqp"
# amqp: '%env(MESSENGER_ADAPTER_DSN)%'
routing:
# Route your messages to the transports
# 'App\Message\YourMessage': amqp
+9
View File
@@ -0,0 +1,9 @@
{
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"#1": "MESSENGER_ADAPTER_DSN=amqp://guest:guest@localhost:5672/%2f/messages"
},
"aliases": ["messenger"]
}
+17
View File
@@ -0,0 +1,17 @@
<bg=blue;fg=white> </>
<bg=blue;fg=white> What's next? </>
<bg=blue;fg=white> </>
* You're ready to use the Messenger component. You can define your own message buses
or start using the default one right now by injecting the <info>messenger.bus.default</info> service
or typehinting <info>Symfony\Component\Messenger\MessageBusInterface</info> in your code.
* If you need to send messages to your broker, you can benefit from the built-in
AMQP transport by:
1. Installing the AMQP pack by running <info>composer require amqp</>;
2. Uncommenting the <comment>MESSENGER_ADAPTER_DSN</> env var
and <comment>framework.messanger.transports.amqp</> config;
3. Routing your messages to the amqp sender.
* <fg=blue>Read</> the documentation at <comment>https://symfony.com/doc/master/messenger.html</>