CoreFiles by mySites.guru
CliInput.php36 lines, 763 bytes, from Joomla_4.2.2-Stable-Full_Package.zip
Raw History Compare with 4.2.1
md5
3997f47910fd4531e3d74b5485633118
sha1
9c16485891302677a09fe1ffaad997216652dc49
sha256
07d7b8f623723f2eb6a54546c37b3d1fb59bf2fad4468ac713a056de5e0de827
<?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('JPATH_PLATFORM') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * Class CliInput
 *
 * @since       4.0.0
 * @deprecated  5.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 23 releases, Joomla 4.2.1 to 4.3.0-rc2. See them all, or every version of this file.