function ReStructuredTextDescriptor::getApplicationTitle
1 call to ReStructuredTextDescriptor::getApplicationTitle()
- ReStructuredTextDescriptor::describeApplication in vendor/
symfony/ console/ Descriptor/ ReStructuredTextDescriptor.php - Describes an Application instance.
File
-
vendor/
symfony/ console/ Descriptor/ ReStructuredTextDescriptor.php, line 164
Class
Namespace
Symfony\Component\Console\DescriptorCode
private function getApplicationTitle(Application $application) : string {
if ('UNKNOWN' === $application->getName()) {
return 'Console Tool';
}
if ('UNKNOWN' !== $application->getVersion()) {
return \sprintf('%s %s', $application->getName(), $application->getVersion());
}
return $application->getName();
}