PHP 8.3.31
Preview: BufferedOutput.php Size: 808 B
/home/getspomw/royalsquad.us/vendor/symfony/console/Output/BufferedOutput.php

<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Console\Output;

/**
 * @author Jean-François Simon <contact@jfsimon.fr>
 */
class BufferedOutput extends Output
{
    private string $buffer = '';

    /**
     * Empties buffer and returns its content.
     */
    public function fetch(): string
    {
        $content = $this->buffer;
        $this->buffer = '';

        return $content;
    }

    protected function doWrite(string $message, bool $newline): void
    {
        $this->buffer .= $message;

        if ($newline) {
            $this->buffer .= \PHP_EOL;
        }
    }
}

Directory Contents

Dirs: 0 × Files: 11

Name Size Perms Modified Actions
3.41 KB lrw-rw-rw- 2025-09-17 06:53:23
Edit Download
808 B lrw-rw-rw- 2025-09-17 06:53:23
Edit Download
4.64 KB lrw-rw-rw- 2025-09-17 06:53:23
Edit Download
785 B lrw-rw-rw- 2025-09-17 06:53:23
Edit Download
8.20 KB lrw-rw-rw- 2025-09-17 06:53:23
Edit Download
10.10 KB lrw-r--r-- 2026-04-26 10:00:22
Edit Download
1.96 KB lrw-rw-rw- 2025-09-17 06:53:23
Edit Download
4.18 KB lrw-rw-rw- 2025-09-17 06:53:23
Edit Download
2.74 KB lrw-rw-rw- 2025-09-17 06:53:23
Edit Download
4.11 KB lrw-rw-rw- 2025-09-17 06:53:23
Edit Download
1.52 KB lrw-rw-rw- 2025-09-17 06:53:23
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).