123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- namespace Symfony\Component\Console\Output;
- class BufferedOutput extends Output
- {
- private $buffer = '';
-
- public function fetch()
- {
- $content = $this->buffer;
- $this->buffer = '';
- return $content;
- }
-
- protected function doWrite($message, $newline)
- {
- $this->buffer .= $message;
- if ($newline) {
- $this->buffer .= PHP_EOL;
- }
- }
- }
|