Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Application.php

function Application::getLongVersion

Same name in this branch
  1. 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\Console

Code

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';
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal