protected function execute(InputInterface $input, OutputInterface $output)
{
$commandHelp = <<<COMMAND_HELP
Symfony Installer (%s)
%s
This is the official installer to start new projects based on the
Symfony full-stack framework.
To create a new project called <info>blog</info> in the current directory using
the <info>latest stable version</info> of Symfony, execute the following command:
<comment>%s new blog</comment>
Create a project based on the <info>Symfony Long Term Support version</info> (LTS):
<comment>%3\$s new blog lts</comment>
Create a project based on a <info>specific Symfony branch</info>:
<comment>%3\$s new blog 2.8</comment> or <comment>%3\$s new blog 3.0</comment>
Create a project based on a <info>specific Symfony version</info>:
<comment>%3\$s new blog 2.8.1</comment> or <comment>%3\$s new blog 3.0.1</comment>
Create a <info>demo application</info> to learn how a Symfony application works:
<comment>%3\$s demo</comment>
COMMAND_HELP;
// show the self-update information only when using the PHAR file
if ('phar://' === substr(__DIR__, 0, 7)) {
$commandUpdateHelp = <<<COMMAND_UPDATE_HELP
Updating the Symfony Installer
------------------------------
New versions of the Symfony Installer are released regularly. To <info>update your
installer</info> version, execute the following command:
<comment>%3\$s self-update</comment>
COMMAND_UPDATE_HELP;
$commandHelp .= $commandUpdateHelp;
}
$output->writeln(sprintf($commandHelp, $this->appVersion, str_repeat('=', 20 + strlen($this->appVersion)), $this->getExecutedCommand()));
}