From f7e8e0a1a4605a56990f9a76375e5ee8ac5bbcf0 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Mon, 19 Feb 2024 09:20:12 +0100 Subject: [PATCH] Add support for Symfony 7.0 (#52) --- .../ImportDestinationDataViaAllConfigruationsCommand.php | 2 +- .../Command/ImportDestinationDataViaConfigruationCommand.php | 2 +- Classes/Command/RemoveAllCommand.php | 2 +- Classes/Command/RemovePastCommand.php | 2 +- composer.json | 2 ++ 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Classes/Command/ImportDestinationDataViaAllConfigruationsCommand.php b/Classes/Command/ImportDestinationDataViaAllConfigruationsCommand.php index c7f3e6a..5fa8e0b 100644 --- a/Classes/Command/ImportDestinationDataViaAllConfigruationsCommand.php +++ b/Classes/Command/ImportDestinationDataViaAllConfigruationsCommand.php @@ -26,7 +26,7 @@ class ImportDestinationDataViaAllConfigruationsCommand extends Command $this->setHelp('Destination Data Events are imported from all configuration records.'); } - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { Bootstrap::initializeBackendAuthentication(); diff --git a/Classes/Command/ImportDestinationDataViaConfigruationCommand.php b/Classes/Command/ImportDestinationDataViaConfigruationCommand.php index 412f6fd..a81cf63 100644 --- a/Classes/Command/ImportDestinationDataViaConfigruationCommand.php +++ b/Classes/Command/ImportDestinationDataViaConfigruationCommand.php @@ -34,7 +34,7 @@ class ImportDestinationDataViaConfigruationCommand extends Command ); } - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { Bootstrap::initializeBackendAuthentication(); diff --git a/Classes/Command/RemoveAllCommand.php b/Classes/Command/RemoveAllCommand.php index f1e69ab..7c1e65e 100644 --- a/Classes/Command/RemoveAllCommand.php +++ b/Classes/Command/RemoveAllCommand.php @@ -24,7 +24,7 @@ class RemoveAllCommand extends Command $this->setHelp('All events and associated data will be removed.'); } - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { Bootstrap::initializeBackendAuthentication(); $this->cleanupService->deleteAllData(); diff --git a/Classes/Command/RemovePastCommand.php b/Classes/Command/RemovePastCommand.php index 76377e3..0481ec9 100644 --- a/Classes/Command/RemovePastCommand.php +++ b/Classes/Command/RemovePastCommand.php @@ -24,7 +24,7 @@ class RemovePastCommand extends Command $this->setHelp('Past dates are removed, together with events that do not have any left dates.'); } - protected function execute(InputInterface $input, OutputInterface $output) + protected function execute(InputInterface $input, OutputInterface $output): int { Bootstrap::initializeBackendAuthentication(); diff --git a/composer.json b/composer.json index ab018da..16c9ec2 100644 --- a/composer.json +++ b/composer.json @@ -20,6 +20,8 @@ ], "require": { "php": "~8.1.0 || ~8.2.0 || ~8.3.0", + "symfony/console": "^6.4 || ^7.0", + "symfony/dependency-injection": "^6.4 || ^7.0", "typo3/cms-core": "^12.4", "typo3/cms-extbase": "^12.4", "typo3/cms-filelist": "^12.4",