You are here

public function Application::getLongVersion in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Application.php \Symfony\Component\Console\Application::getLongVersion()

Returns the long version of the application.

Return value

string The long application version

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.

File

vendor/symfony/console/Application.php, line 310

Class

Application
An Application is the container for a collection of commands.

Namespace

Symfony\Component\Console

Code

public function getLongVersion() {
  if ('UNKNOWN' !== $this
    ->getName() && 'UNKNOWN' !== $this
    ->getVersion()) {
    return sprintf('<info>%s</info> version <comment>%s</comment>', $this
      ->getName(), $this
      ->getVersion());
  }
  return '<info>Console Tool</info>';
}