[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/Application/CLI/ -> CliInput.php (source)

   1  <?php
   2  
   3  /**
   4   * Joomla! Content Management System
   5   *
   6   * @copyright  (C) 2016 Open Source Matters, Inc. <https://www.joomla.org>
   7   * @license    GNU General Public License version 2 or later; see LICENSE.txt
   8   */
   9  
  10  namespace Joomla\CMS\Application\CLI;
  11  
  12  // phpcs:disable PSR1.Files.SideEffects
  13  \defined('JPATH_PLATFORM') or die;
  14  // phpcs:enable PSR1.Files.SideEffects
  15  
  16  /**
  17   * Class CliInput
  18   *
  19   * @since       4.0.0
  20   * @deprecated  5.0  Use the `joomla/console` package instead
  21   */
  22  class CliInput
  23  {
  24      /**
  25       * Get a value from standard input.
  26       *
  27       * @return  string  The input string from standard input.
  28       *
  29       * @codeCoverageIgnore
  30       * @since   4.0.0
  31       */
  32      public function in()
  33      {
  34          return rtrim(fread(STDIN, 8192), "\n\r");
  35      }
  36  }


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer