mirror of
https://github.com/symfony/recipes.git
synced 2026-09-18 02:26:31 +03:00
16 lines
848 B
Plaintext
16 lines
848 B
Plaintext
<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>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</>
|