Merge pull request #592

This commit is contained in:
symfony-flex-server[bot]
2019-05-25 07:59:39 +00:00
committed by GitHub
3 changed files with 10 additions and 9 deletions
@@ -11,4 +11,4 @@ framework:
routing:
# Route your messages to the transports
# 'App\Message\YourMessage': [async, sync]
# 'App\Message\YourMessage': async
+3 -2
View File
@@ -3,9 +3,10 @@
"config/": "%CONFIG_DIR%/"
},
"env": {
"#1": "To use AMQP, also run composer require amqp",
"#1": "Choose one of the transports below",
"#2": "MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages",
"#3": "MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages"
"#3": "MESSENGER_TRANSPORT_DSN=doctrine://default",
"#4": "MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages"
},
"aliases": ["messenger"],
"conflict": {
+6 -6
View File
@@ -3,13 +3,13 @@
<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.
or start using the default one right now by injecting the <info>message_bus</info> service
or type-hinting <info>Symfony\Component\Messenger\MessageBusInterface</info> in your code.
* To send messages to a transport and handle them asynchronously:
1. Uncomment the <comment>MESSENGER_TRANSPORT_DSN</> env var in .env
and <comment>framework.messenger.transports.async</> in config/packages/messenger.yaml;
2. Route your message classes to the async transport in config/packages/messenger.yaml.
1. Uncomment the <info>MESSENGER_TRANSPORT_DSN</> env var in <comment>.env</>
and <info>framework.messenger.transports.async</> in <comment>config/packages/messenger.yaml</>;
2. Route your message classes to the async transport in <comment>config/packages/messenger.yaml</>.
* <fg=blue>Read</> the documentation at <comment>https://symfony.com/doc/master/messenger.html</>
* <fg=blue>Read</> the documentation at <comment>https://symfony.com/doc/current/messenger.html</>