CoreFiles by mySites.guru
CliInput.php38 lines, 796 bytes, from Joomla_5.3.0-Stable-Full_Package.zip
Raw History Compare with 5.2.6
md5
757077aeb020ca3ddbc152c94f60b8a7
sha1
52c2a36629a77cbd8c3f35f7f507edd86017c660
sha256
98c6b55d8814ede5f841bf727b57cf94e9a2e5f9ce8d65cfe51b94cda2ba2753
<?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 6.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 105 releases, Joomla 5.0.0-alpha1 to 5.4.10. See them all, or every version of this file.