Merge pull request #20 from yceruto/rabbitmq_bundle

This commit is contained in:
Symfony
2017-05-12 15:55:28 -07:00
committed by GitHub
3 changed files with 27 additions and 0 deletions
@@ -0,0 +1,15 @@
old_sound_rabbit_mq:
connections:
default:
url: '%env(RABBITMQ_URL)%'
# producers:
# # use 'old_sound_rabbit_mq.task_producer' service to send data.
# task:
# connection: default
# exchange_options: { name: 'task', type: direct }
# consumers:
# task:
# connection: default
# exchange_options: { name: 'task', type: direct }
# queue_options: { name: 'task'}
# callback: App\Consumer\TaskConsumer
@@ -0,0 +1,12 @@
{
"bundles": {
"OldSound\\RabbitMqBundle\\OldSoundRabbitMqBundle": ["all"]
},
"copy-from-recipe": {
"etc/": "%ETC_DIR%/",
"src/": "%SRC_DIR%/"
},
"env": {
"RABBITMQ_URL": "amqp://guest:guest@localhost:5672"
}
}