コード例 #1
0
 /**
  * @task impl
  */
 public function write($message)
 {
     $this->bytesWritten += strlen($message);
     return parent::write($message);
 }
コード例 #2
0
 public function write($message)
 {
     $this->log('<<< ' . phutil_loggable_string($message));
     return parent::write($message);
 }
コード例 #3
0
 /**
  * Write a message to the channel.
  *
  * @param wild    Some message.
  * @return this
  *
  * @task io
  */
 public function write($message)
 {
     $bytes = $this->encodeMessage($message);
     return parent::write($bytes);
 }