mirror of
https://github.com/symfony/recipes.git
synced 2026-09-17 18:16:34 +03:00
12 lines
739 B
Plaintext
12 lines
739 B
Plaintext
* 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>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 <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/current/messenger.html</>
|