From 43b899d366642763d53842ad955680d17214c259 Mon Sep 17 00:00:00 2001 From: Mathieu Rochette Date: Thu, 1 Dec 2016 11:29:05 +0100 Subject: [PATCH] fix: don't automatically create anonymous queue in exchange --- src/fiunchinho/Silex/Provider/RabbitServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fiunchinho/Silex/Provider/RabbitServiceProvider.php b/src/fiunchinho/Silex/Provider/RabbitServiceProvider.php index d71038a..966952b 100644 --- a/src/fiunchinho/Silex/Provider/RabbitServiceProvider.php +++ b/src/fiunchinho/Silex/Provider/RabbitServiceProvider.php @@ -110,7 +110,7 @@ private function loadProducers(Container $container) //this producer doesn't define a queue if (!isset($options['queue_options'])) { - $options['queue_options']['name'] = null; + $options['queue_options']['declare'] = false; } $producer->setQueueOptions($options['queue_options']);