Skip to content

Commit

Permalink
Do not force drivers to implement fluent interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
gggeek committed Aug 31, 2015
1 parent 07ade94 commit e9af15a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Service/MessageProducer.php
Expand Up @@ -126,9 +126,9 @@ protected function encodeMessageBody($data)
*/
protected function doPublish($data, $routingKey = '', $extras = array())
{
$this->getProducerService()
->setContentType($this->getContentType())
->publish($this->encodeMessageBody($data), $routingKey, $extras);
$producer = $this->getProducerService();
$producer->setContentType($this->getContentType());
$producer->publish($this->encodeMessageBody($data), $routingKey, $extras);
}

}

0 comments on commit e9af15a

Please sign in to comment.