Skip to content

Commit

Permalink
Merge pull request php-amqplib#14 from panosru/patch-1
Browse files Browse the repository at this point in the history
Pass the whole message object to consumer - BC break change
  • Loading branch information
videlalvaro committed Jan 3, 2012
2 parents 9c9797a + d7cf157 commit a2ed9a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RabbitMq/Consumer.php
Expand Up @@ -28,7 +28,7 @@ public function processMessage(AMQPMessage $msg)
try
{
//TODO pass the whole message and document the usage.
call_user_func($this->callback, $msg->body);
call_user_func($this->callback, $msg);
$msg->delivery_info['channel']->basic_ack($msg->delivery_info['delivery_tag']);
$this->consumed++;
$this->maybeStopConsumer($msg);
Expand Down

0 comments on commit a2ed9a7

Please sign in to comment.