diff --git a/composer.json b/composer.json index 82cd7b6..4ace4b8 100644 --- a/composer.json +++ b/composer.json @@ -18,14 +18,14 @@ "php": ">=7.4 || >=8.1", "doctrine/doctrine-bundle": "^2.5", "doctrine/doctrine-migrations-bundle": "^3.2", - "symfony/console": "5.4.* || 6.*", - "symfony/http-kernel": "5.4.* || 6.*", - "symfony/property-access": "5.4.* || 6.*", - "symfony/translation": "5.4.* || 6.*", - "symfony/yaml": "5.4.* || 6.*", + "symfony/console": "5.4.* || 6.* || 7.*", + "symfony/http-kernel": "5.4.* || 6.* || 7.*", + "symfony/property-access": "5.4.* || 6.* || 7.*", + "symfony/translation": "5.4.* || 6.* || 7.*", + "symfony/yaml": "5.4.* || 6.* || 7.*", "twig/twig": "2.15.* || ^3.5", "pagerfanta/pagerfanta": "^2.6 || ^3.6 || ^4.0", - "symfony/form": "5.4.* || 6.*" + "symfony/form": "5.4.* || 6.* || 7.*" }, "prefer-stable": true, "autoload": { diff --git a/src/Cli/ExecuteMigrationCommand.php b/src/Cli/ExecuteMigrationCommand.php index a1792a5..4e42a80 100644 --- a/src/Cli/ExecuteMigrationCommand.php +++ b/src/Cli/ExecuteMigrationCommand.php @@ -30,7 +30,7 @@ public function __construct( GlobFinder $translationFinder, string $translationMigrationDirectory, ExecutorInterface $migrationExecutor, - string $name = null + ?string $name = null ) { parent::__construct($name); @@ -41,7 +41,7 @@ public function __construct( protected function configure(): void { - $this->setDescription('Execute migration of translations'); + $this->setName(self::$defaultName)->setDescription('Execute migration of translations'); $this->addOption( 'resync', diff --git a/src/Cli/WriteTranslationValuesCommand.php b/src/Cli/WriteTranslationValuesCommand.php index f05849f..cc62537 100644 --- a/src/Cli/WriteTranslationValuesCommand.php +++ b/src/Cli/WriteTranslationValuesCommand.php @@ -36,7 +36,7 @@ public function __construct( TranslationValueSaverInterface $translationValueSaver, string $localeCode, array $locales, - string $name = null + ?string $name = null ) { parent::__construct($name); @@ -49,7 +49,7 @@ public function __construct( protected function configure(): void { - $this->setDescription('Dump all translations into files'); + $this->setName(self::$defaultName)->setDescription('Dump all translations into files'); } protected function execute(InputInterface $input, OutputInterface $output): int