CoreFiles by mySites.guru
Stdout.php43 lines, 1,088 bytes, from Joomla_4.2.6-Stable-Full_Package.zip
Raw History Compare with 4.2.5
md5
946f4f1a5c7fe59c5483f034e9c06571
sha1
7c17c16e875d7c8106d391b939945c9ef610eab8
sha256
a6c15213101bb604d98dbe956932d4c5182f40b8c1320add9f01ae43b31928f9
<?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('JPATH_PLATFORM') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * Output handler for writing command line output to the stdout interface
 *
 * @since       4.0.0
 * @deprecated  5.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 23 releases, Joomla 4.2.1 to 4.3.0-rc2. See them all, or every version of this file.