Changeset View
Changeset View
Standalone View
Standalone View
src/console/PhutilConsoleServerChannel.php
<?php | <?php | ||||
final class PhutilConsoleServerChannel extends PhutilChannelChannel { | final class PhutilConsoleServerChannel extends PhutilChannelChannel { | ||||
public function didReceiveStderr(PhutilExecChannel $channel, $stderr) { | public function didReceiveStderr(PhutilExecChannel $channel, $stderr) { | ||||
$message = id(new PhutilConsoleMessage()) | $message = (new PhutilConsoleMessage()) | ||||
->setType(PhutilConsoleMessage::TYPE_ERR) | ->setType(PhutilConsoleMessage::TYPE_ERR) | ||||
->setData(array('%s', $stderr)); | ->setData(array('%s', $stderr)); | ||||
$this->getUnderlyingChannel()->addMessage($message); | $this->getUnderlyingChannel()->addMessage($message); | ||||
} | } | ||||
} | } |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0