function Application::getLongVersion
Same name in this branch
- 11.1.x vendor/symfony/console/Application.php \Symfony\Component\Console\Application::getLongVersion()
Overrides Application::getLongVersion
File
-
vendor/
composer/ composer/ src/ Composer/ Console/ Application.php, line 634
Class
- Application
- The console application that handles the commands
Namespace
Composer\ConsoleCode
public function getLongVersion() : string {
$branchAliasString = '';
if (Composer::BRANCH_ALIAS_VERSION && Composer::BRANCH_ALIAS_VERSION !== '@package_branch_alias_version' . '@') {
$branchAliasString = sprintf(' (%s)', Composer::BRANCH_ALIAS_VERSION);
}
return sprintf('<info>%s</info> version <comment>%s%s</comment> %s', $this->getName(), $this->getVersion(), $branchAliasString, Composer::RELEASE_DATE);
}