PHP 8.2.31
Preview: BufferedOutput.php Size: 853 B
//opt/cpanel/ea-wappspector/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 $buffer = '';

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

        return $content;
    }

    /**
     * {@inheritdoc}
     */
    protected function doWrite(string $message, bool $newline)
    {
        $this->buffer .= $message;

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

Directory Contents

Dirs: 0 × Files: 9

Name Size Perms Modified Actions
853 B lrw-r--r-- 2024-11-06 11:30:55
Edit Download
4.80 KB lrw-r--r-- 2024-11-06 11:30:55
Edit Download
800 B lrw-r--r-- 2024-11-06 11:30:55
Edit Download
4.09 KB lrw-r--r-- 2024-11-06 11:30:55
Edit Download
2.26 KB lrw-r--r-- 2024-11-06 11:30:55
Edit Download
4.31 KB lrw-r--r-- 2024-11-06 11:30:55
Edit Download
2.84 KB lrw-r--r-- 2024-11-06 11:30:55
Edit Download
3.96 KB lrw-r--r-- 2024-11-06 11:30:55
Edit Download
1.56 KB lrw-r--r-- 2024-11-06 11:30:55
Edit Download

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