Transport/PubSub/Publisher.php 1 location
|
@@ 56-67 (lines=12) @@
|
| 53 |
|
/** |
| 54 |
|
* @return CmobiAMQPChannel |
| 55 |
|
*/ |
| 56 |
|
public function refreshChannel() |
| 57 |
|
{ |
| 58 |
|
/** @var CmobiAMQPConnectionInterface $connection */ |
| 59 |
|
$connection = $this->connectionManager->getConnection(); |
| 60 |
|
|
| 61 |
|
if (! $connection->isConnected()) { |
| 62 |
|
$connection->reconnect(); |
| 63 |
|
} |
| 64 |
|
$this->channel = $connection->channel(); |
| 65 |
|
|
| 66 |
|
return $this->channel; |
| 67 |
|
} |
| 68 |
|
|
| 69 |
|
/** |
| 70 |
|
* @return CmobiAMQPChannel |
Transport/Rpc/RpcClient.php 1 location
|
@@ 42-52 (lines=11) @@
|
| 39 |
|
* @return \PhpAmqpLib\Channel\AMQPChannel |
| 40 |
|
* @throws \Cmobi\RabbitmqBundle\Connection\Exception\NotFoundAMQPConnectionFactoryException |
| 41 |
|
*/ |
| 42 |
|
public function refreshChannel() |
| 43 |
|
{ |
| 44 |
|
$connection = $this->connectionManager->getConnection(); |
| 45 |
|
|
| 46 |
|
if (! $connection->isConnected()) { |
| 47 |
|
$connection->reconnect(); |
| 48 |
|
} |
| 49 |
|
$this->channel = $connection->channel(); |
| 50 |
|
|
| 51 |
|
return $this->channel; |
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
/** |
| 55 |
|
* @param $data |
Transport/Worker/Task.php 1 location
|
@@ 52-63 (lines=12) @@
|
| 49 |
|
/** |
| 50 |
|
* @return CmobiAMQPChannel |
| 51 |
|
*/ |
| 52 |
|
public function refreshChannel() |
| 53 |
|
{ |
| 54 |
|
/** @var CmobiAMQPConnectionInterface $connection */ |
| 55 |
|
$connection = $this->connectionManager->getConnection(); |
| 56 |
|
|
| 57 |
|
if (! $connection->isConnected()) { |
| 58 |
|
$connection->reconnect(); |
| 59 |
|
} |
| 60 |
|
$this->channel = $connection->channel(); |
| 61 |
|
|
| 62 |
|
return $this->channel; |
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
/** |
| 66 |
|
* @return string |