Exemplo n.º 1
0
 /** {@inheritdoc} */
 public function sendMessage($message)
 {
     $this->channel->sendMessage($message);
     return $this;
 }
Exemplo n.º 2
0
 /**
  * @param ChannelInterface $channel
  * @param WorkerStatus     $result
  *
  * @throws Exception\RuntimeException
  */
 public static function sendStatusMessage(ChannelInterface $channel, WorkerStatus $result)
 {
     $channel->sendMessage($channel instanceof SerializedChannel ? $result : ['_status_' => $result->toArray()]);
 }