protected function Shell::getPrompt in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Shell.php \Symfony\Component\Console\Shell::getPrompt()
Renders a prompt.
Return value
string The prompt
1 call to Shell::getPrompt()
- Shell::readline in vendor/
symfony/ console/ Shell.php - Reads a single line from standard input.
File
- vendor/
symfony/ console/ Shell.php, line 145
Class
- Shell
- A Shell wraps an Application to add shell capabilities to it.
Namespace
Symfony\Component\ConsoleCode
protected function getPrompt() {
// using the formatter here is required when using readline
return $this->output
->getFormatter()
->format($this->application
->getName() . ' > ');
}