bump dependencies and improved export command (#3606)

This commit is contained in:
Kevin Papst
2022-10-30 11:34:17 +01:00
committed by GitHub
parent 421be6835e
commit 642d31432a
5 changed files with 121 additions and 116 deletions

View File

@@ -18,7 +18,6 @@ use App\Repository\Query\TimesheetQuery;
use App\Repository\TeamRepository;
use App\Repository\UserRepository;
use App\Timesheet\DateTimeFactory;
use App\Utils\Translator;
use Symfony\Bridge\Twig\Mime\TemplatedEmail;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
@@ -28,6 +27,8 @@ use Symfony\Component\Console\Style\SymfonyStyle;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\HttpFoundation\BinaryFileResponse;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Contracts\Translation\LocaleAwareInterface;
use Symfony\Contracts\Translation\TranslatorInterface;
class ExportCreateCommand extends Command
{
@@ -45,7 +46,7 @@ class ExportCreateCommand extends Command
ProjectRepository $projectRepository,
TeamRepository $teamRepository,
UserRepository $userRepository,
Translator $translator,
TranslatorInterface $translator,
KimaiMailer $mailer
) {
$this->serviceExport = $serviceExport;
@@ -110,7 +111,9 @@ class ExportCreateCommand extends Command
$locale = $input->getOption('locale');
\Locale::setDefault($locale);
$this->translator->setLocale($locale);
if ($this->translator instanceof LocaleAwareInterface) {
$this->translator->setLocale($locale);
}
$timezone = $input->getOption('timezone');
if ($timezone === null) {

View File

@@ -17,11 +17,11 @@ class Constants
/**
* The current release version
*/
public const VERSION = '1.28.0';
public const VERSION = '1.28.1';
/**
* The current release: major * 10000 + minor * 100 + patch
*/
public const VERSION_ID = 12800;
public const VERSION_ID = 12801;
/**
* The current release status, either "stable" or "dev"
*/