CoreFiles by mySites.guru
Xml.php46 lines, 1,129 bytes, from Joomla_4.4.7-Stable-Full_Package.zip
Raw History Compare with 4.4.6
md5
dc0825f9b48d63062359e492bdebd0f1
sha1
24816f8531a29aa0cf1ae422a2c1bd85299ea8e6
sha256
e9cf7e59bf76766994dbf82007425355968b6a52046674113cae514bff762ea0
<?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  4.3 will be removed in 6.0
 *              Use the `joomla/console` package instead
 */
class Xml 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
     *
     * @since   4.0.0
     * @throws  \RuntimeException
     * @codeCoverageIgnore
     */
    public function out($text = '', $nl = true)
    {
        fwrite(STDOUT, $text . ($nl ? "\n" : null));

        return $this;
    }
}

The same content is in 47 releases, Joomla 4.3.0-rc3 to 4.4.14. See them all, or every version of this file.