You are here

protected function Shell::getHeader in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/console/Shell.php \Symfony\Component\Console\Shell::getHeader()

Returns the shell header.

Return value

string The header string

1 call to Shell::getHeader()
Shell::run in vendor/symfony/console/Shell.php
Runs the shell.

File

vendor/symfony/console/Shell.php, line 126

Class

Shell
A Shell wraps an Application to add shell capabilities to it.

Namespace

Symfony\Component\Console

Code

protected function getHeader() {
  return <<<EOF

Welcome to the <info>{<span class="php-variable">$this</span>-&gt;<span class="php-function-or-constant property member-of-self">application</span>
  -&gt;<span class="php-function-or-constant function member-of-variable">getName</span>()}</info> shell (<comment>{<span class="php-variable">$this</span>-&gt;<span class="php-function-or-constant property member-of-self">application</span>
  -&gt;<span class="php-function-or-constant function member-of-variable">getVersion</span>()}</comment>).

At the prompt, type <comment>help</comment> for some help,
or <comment>list</comment> to get a list of available commands.

To exit the shell, type <comment>^D</comment>.

EOF;
}