Airship\Hangar\Command::prompt PHP Méthode

prompt() final protected méthode

Prompt the user for an input value
final protected prompt ( string $text ) : string
$text string
Résultat string
    protected final function prompt($text)
    {
        static $fp = null;
        if ($fp === null) {
            $fp = \fopen('php://stdin', 'r');
        }
        echo $text;
        return Binary::safeSubstr(\fgets($fp), 0, -1);
    }