Back to ConsoleApplication class

Method getLongVersion

public string
getLongVersion
()
Get the long version string for the application.
Returns
  • string
Since
  • 4.0.0

Method getLongVersion - Source code

/**
 * Get the long version string for the application.
 *
 * Overrides the parent method due to conflicting use of the getName method between the console application and
 * the CMS application interface.
 *
 * @return  string
 *
 * @since   4.0.0
 */
public function getLongVersion() : string
{
    return sprintf('Joomla! <info>%s</info> (debug: %s)', (new Version())->getShortVersion(), \defined('JDEBUG') && JDEBUG ? 'Yes' : 'No');
}