private function Shell::readline in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Shell.php \Symfony\Component\Console\Shell::readline()
Reads a single line from standard input.
Return value
string The single line from standard input
1 call to Shell::readline()
- Shell::run in vendor/
symfony/ console/ Shell.php - Runs the shell.
File
- vendor/
symfony/ console/ Shell.php, line 202
Class
- Shell
- A Shell wraps an Application to add shell capabilities to it.
Namespace
Symfony\Component\ConsoleCode
private function readline() {
if ($this->hasReadline) {
$line = readline($this
->getPrompt());
}
else {
$this->output
->write($this
->getPrompt());
$line = fgets(STDIN, 1024);
$line = false === $line || '' === $line ? false : rtrim($line);
}
return $line;
}