From 8a1403e6e98734f517e691650992913c57ae1b11 Mon Sep 17 00:00:00 2001 From: Matteo Biagetti Date: Tue, 17 Jan 2017 10:34:58 +0100 Subject: [PATCH] Align interface with the implementation of the Message Producer --- RabbitMq/Fallback.php | 10 +++++++++- RabbitMq/ProducerInterface.php | 3 ++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/RabbitMq/Fallback.php b/RabbitMq/Fallback.php index e946ccaf..92f021e7 100644 --- a/RabbitMq/Fallback.php +++ b/RabbitMq/Fallback.php @@ -4,7 +4,15 @@ class Fallback implements ProducerInterface { - public function publish($msgBody, $routingKey = '', $additionalProperties = array()) + /** + * Publish a message + * + * @param string $msgBody + * @param string $routingKey + * @param array $additionalProperties + * @param array $headers + */ + public function publish($msgBody, $routingKey = '', $additionalProperties = array(), array $headers = null) { return false; } diff --git a/RabbitMq/ProducerInterface.php b/RabbitMq/ProducerInterface.php index b4e166c1..eee136e8 100644 --- a/RabbitMq/ProducerInterface.php +++ b/RabbitMq/ProducerInterface.php @@ -10,6 +10,7 @@ interface ProducerInterface * @param string $msgBody * @param string $routingKey * @param array $additionalProperties + * @param array $headers */ - public function publish($msgBody, $routingKey = '', $additionalProperties = array()); + public function publish($msgBody, $routingKey = '', $additionalProperties = array(), array $headers = null); }