function Application::getLongVersion
Same name in this branch
- 11.1.x vendor/composer/composer/src/Composer/Console/Application.php \Composer\Console\Application::getLongVersion()
Returns the long version of the application.
2 calls to Application::getLongVersion()
- Application::doRun in vendor/
symfony/ console/ Application.php - Runs the current application.
- Application::getHelp in vendor/
symfony/ console/ Application.php - Gets the help message.
1 method overrides Application::getLongVersion()
- Application::getLongVersion in vendor/
composer/ composer/ src/ Composer/ Console/ Application.php - Returns the long version of the application.
File
-
vendor/
symfony/ console/ Application.php, line 498
Class
- Application
- An Application is the container for a collection of commands.
Namespace
Symfony\Component\ConsoleCode
public function getLongVersion() : string {
if ('UNKNOWN' !== $this->getName()) {
if ('UNKNOWN' !== $this->getVersion()) {
return \sprintf('%s <info>%s</info>', $this->getName(), $this->getVersion());
}
return $this->getName();
}
return 'Console Tool';
}