protected function StreamOutput::doWrite in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Output/StreamOutput.php \Symfony\Component\Console\Output\StreamOutput::doWrite()
Writes a message to the output.
Parameters
string $message A message to write to the output:
bool $newline Whether to add a newline or not:
Overrides Output::doWrite
File
- vendor/
symfony/ console/ Output/ StreamOutput.php, line 71
Class
- StreamOutput
- StreamOutput writes the output to a given stream.
Namespace
Symfony\Component\Console\OutputCode
protected function doWrite($message, $newline) {
if (false === @fwrite($this->stream, $message . ($newline ? PHP_EOL : ''))) {
// should never happen
throw new \RuntimeException('Unable to write output.');
}
fflush($this->stream);
}