CoreFiles by mySites.guru
Stdout.php45 lines, 1,121 bytes, from Joomla_6.2.0-Stable-Full_Package.zip
Raw History Compare with 6.1.4
md5
ebd8e43d1cb09076106b76f4fce1369e
sha1
d310784b631e40dfd9a5506068cd31eb88f1f5f8
sha256
974949cb06b1a8341e7325367a3b7505ad78a164dace17556b2b6ca5e6c5d3ab
<?php

/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2014 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Application\CLI\Output;

use Joomla\CMS\Application\CLI\CliOutput;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * Output handler for writing command line output to the stdout interface
 *
 * @since       4.0.0
 *
 * @deprecated  4.3 will be removed in 7.0
 *              Use the `joomla/console` package instead
 */
class Stdout extends CliOutput
{
    /**
     * Write a string to standard output
     *
     * @param   string   $text  The text to display.
     * @param   boolean  $nl    True (default) to append a new line at the end of the output string.
     *
     * @return  $this
     *
     * @codeCoverageIgnore
     * @since   4.0.0
     */
    public function out($text = '', $nl = true)
    {
        fwrite(STDOUT, $this->getProcessor()->process($text) . ($nl ? "\n" : null));

        return $this;
    }
}

The same content is in 9 releases, Joomla 6.2.0-alpha2 to 6.2.1-rc1. See them all, or every version of this file.