CoreFiles by mySites.guru
Stdout.php39 lines, 973 bytes, from Joomla_4.2.0-Stable-Full_Package.zip
Raw History Compare with 4.1.5
md5
c2d2e940a4aa71c9d0f3abb7f25a5bbd
sha1
7547653eae593137e4c91fc322ecaa517fe04cd0
sha256
fa23a7c192c496a55bbb061928c03a5cfff527fff2150076239a7d13e7efcabb
<?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;

/**
 * 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 5 releases, Joomla 4.2.0-beta3 to 4.2.1-rc2. See them all, or every version of this file.