Next major version 2 with PHP 8.1, Symfony 6, Tabler UI, 2FA ... (#2902)

This commit is contained in:
Kevin Papst
2022-12-31 21:19:55 +01:00
committed by GitHub
parent 95e06746bd
commit 90a0fd8a22
2164 changed files with 83700 additions and 86426 deletions

View File

@@ -11,14 +11,17 @@ namespace App;
use Symfony\Bundle\FrameworkBundle\Console\Application;
class ConsoleApplication extends Application
/**
* @internal
*/
final class ConsoleApplication extends Application
{
public function getName()
public function getName(): string
{
return Constants::SOFTWARE;
}
public function getVersion()
public function getVersion(): string
{
return Constants::VERSION;
}
@@ -28,7 +31,7 @@ class ConsoleApplication extends Application
*
* @return string
*/
public function getLongVersion()
public function getLongVersion(): string
{
return sprintf('%s <info>%s</info> (env: <comment>%s</>, debug: <comment>%s</>)', $this->getName(), $this->getVersion(), $this->getKernel()->getEnvironment(), $this->getKernel()->isDebug() ? 'true' : 'false');
}