CoreFiles by mySites.guru
CliInput.php38 lines, 796 bytes, from Joomla_6.2.0-Stable-Full_Package.zip
Raw History Compare with 6.1.4
md5
9745dc4608bc5b68e755e0e5f08b022f
sha1
1fde1d9e097cdba6a202442f7654229e70de1a3d
sha256
94e0caca5c3860f88b66bd90dc3e7ae4196c1debb46a7cde76e43512c4253804
<?php

/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2016 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;

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

/**
 * Class CliInput
 *
 * @since       4.0.0
 *
 * @deprecated  4.3 will be removed in 7.0
 *              Use the `joomla/console` package instead
 */
class CliInput
{
    /**
     * Get a value from standard input.
     *
     * @return  string  The input string from standard input.
     *
     * @codeCoverageIgnore
     * @since   4.0.0
     */
    public function in()
    {
        return rtrim(fread(STDIN, 8192), "\n\r");
    }
}

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.