Skip to content

Commit

Permalink
Update AmqpTrait.php
Browse files Browse the repository at this point in the history
  • Loading branch information
webtoucher committed Jul 24, 2014
1 parent bad81b4 commit 5fb0c1d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions controllers/AmqpTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,14 @@ public function getConnection()
/**
* Returns AMQP channel.
*
* @param string $channel_id
* @return AMQPChannel
*/
public function getChannel()
public function getChannel($channel_id = null)
{
if (empty($this->amqp)) {
$this->amqp = Yii::$app->amqp;
}
return $this->amqp->getChannel();
return $this->amqp->getChannel($channel_id);
}
}

0 comments on commit 5fb0c1d

Please sign in to comment.