Skip to content

Commit eb620fa

Browse files
committed
Updates changelog and readme for PR #151
1 parent 470c472 commit eb620fa

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
- 2013-01-18
2+
* adds an an optional parameter for the AMQP Message Properties for the publish method of the Producer, so they can be set as well. For example, seeting the application_headers is now possible.
3+
14
- 2012-06-04
25
* Revert PR #46. It is still possible to override parameter classes but in a proper way.
36
* Some default options for exchanges declared in the "producers" config section

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@ public function indexAction($name)
198198
199199
As you can see, if in your configuration you have a producer called __upload\_picture__, then in the service container you will have a service called __old_sound_rabbit_mq.upload\_picture\_producer__.
200200
201+
Besides the message itself, the `OldSound\RabbitMqBundle\RabbitMq\Producer#publish()` method also accepts an optional routing key parameter and an optional array of additional properties. The array of additional properties allows you to alter the properties with which an `PhpAmqpLib\Message\AMQPMessage` object gets constructed by default. This way, for example, you can change the application headers.
202+
201203
You can use __setContentType__ and __setDeliveryMode__ methods in order to set the message content type and the message
202204
delivery mode respectively. Default values are __text/plain__ for content type and __2__ for delivery mode.
203205

0 commit comments

Comments
 (0)