* improve console version output * fix empty string issue in csv export (DDE protection) - fixes #3189 * fix twig sort deprecation in php 8 * sort user by displayName in users report * fix missing custom translations in edit modal * fix font-family in invoice.css * invoice template "freelancer pdf" - added customer number, moved some fields around * invoice template "default" - relocate customer number and order number in
36 lines
865 B
PHP
36 lines
865 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Kimai time-tracking app.
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace App;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
|
|
|
class ConsoleApplication extends Application
|
|
{
|
|
public function getName()
|
|
{
|
|
return Constants::SOFTWARE;
|
|
}
|
|
|
|
public function getVersion()
|
|
{
|
|
return Constants::VERSION;
|
|
}
|
|
|
|
/**
|
|
* Overwritten to prevent unwanted SF core messages to show up here.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getLongVersion()
|
|
{
|
|
return sprintf('%s <info>%s</info> (env: <comment>%s</>, debug: <comment>%s</>)', $this->getName(), $this->getVersion(), $this->getKernel()->getEnvironment(), $this->getKernel()->isDebug() ? 'true' : 'false');
|
|
}
|
|
}
|