Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK] Output TYPO3 version info as well #898

Merged
merged 1 commit into from Apr 24, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 13 additions & 0 deletions Classes/Console/Mvc/Cli/Symfony/Application.php
Expand Up @@ -32,6 +32,8 @@
use Symfony\Component\Console\Input\StreamableInputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;
use TYPO3\CMS\Core\Core\Environment;
use TYPO3\CMS\Core\Information\Typo3Version;

/**
* Represents the complete console application
Expand Down Expand Up @@ -59,6 +61,17 @@ public function __construct(RunLevel $runLevel = null, bool $composerManaged = t
$this->setAutoExit(false);
}

public function getLongVersion(): string
{
return parent::getLongVersion()
. chr(10)
. sprintf(
'TYPO3 CMS <info>%s</info> (<comment>Application Context:</comment> <info>%s</info>)',
(new Typo3Version())->getVersion(),
Environment::getContext()
);
}

/**
* Whether the application can run all commands
* It will return false when TYPO3 is not fully set up yet,
Expand Down