mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 23:26:27 +03:00
51 lines
2.4 KiB
JSON
51 lines
2.4 KiB
JSON
{
|
|
"manifests": {
|
|
"symfony/messenger": {
|
|
"manifest": {
|
|
"copy-from-recipe": {
|
|
"config/": "%CONFIG_DIR%/"
|
|
},
|
|
"env": {
|
|
"#1": "MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages"
|
|
},
|
|
"conflict": {
|
|
"symfony/framework-bundle": "<4.1"
|
|
},
|
|
"post-install-output": [
|
|
" * 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_TRANSPORT_DSN</> env var",
|
|
" and <comment>framework.messenger.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</>"
|
|
]
|
|
},
|
|
"files": {
|
|
"config/packages/messenger.yaml": {
|
|
"contents": [
|
|
"framework:",
|
|
" messenger:",
|
|
" transports:",
|
|
" # Uncomment the following line to enable a transport named \"amqp\"",
|
|
" # amqp: '%env(MESSENGER_TRANSPORT_DSN)%'",
|
|
"",
|
|
" routing:",
|
|
" # Route your messages to the transports",
|
|
" # 'App\\Message\\YourMessage': amqp",
|
|
""
|
|
],
|
|
"executable": false
|
|
}
|
|
},
|
|
"ref": "fb924c94bcbf351a987da8a8125133e72e059472"
|
|
}
|
|
}
|
|
}
|