From 5232a947291d9d4610610a371bde3e65c6bff8f9 Mon Sep 17 00:00:00 2001 From: loic Date: Mon, 8 Jun 2026 08:25:30 +0200 Subject: [PATCH 1/4] * Remove deprecated command --- src/Command/SchemaCommand.php | 55 ----------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 src/Command/SchemaCommand.php diff --git a/src/Command/SchemaCommand.php b/src/Command/SchemaCommand.php deleted file mode 100644 index cbe643d..0000000 --- a/src/Command/SchemaCommand.php +++ /dev/null @@ -1,55 +0,0 @@ -%command.name% help you to generate SQL Query to create or update your database schema for this bundle -TXT)] -class SchemaCommand extends Command -{ - protected function configure(): void - { - $this - ->addOption('update', null, InputOption::VALUE_NONE, 'Dump only the update SQL queries.') - ->addOption('connection', null, InputOption::VALUE_REQUIRED, 'Define the DBAL connection to use') - ; - } - - protected function execute(InputInterface $input, OutputInterface $output): int - { - $io = new SymfonyStyle($input, $output); - $io->warning('This command is deprecated and will be removed in 6.0, use this command "code-rhapsodie:dataflow:database-schema" instead.'); - - $options = array_filter($input->getOptions()); - - // add -- before each keys - $options = array_combine( - array_map(static fn ($key) => '--'.$key, array_keys($options)), - array_values($options) - ); - - $options['--dump-sql'] = true; - - $inputArray = new ArrayInput([ - 'command' => 'code-rhapsodie:dataflow:database-schema', - ...$options, - ]); - - return $this->getApplication()->doRun($inputArray, $output); - } -} From 155f657d0105ad5102a1ff8ff7574dd357dae812 Mon Sep 17 00:00:00 2001 From: loic Date: Mon, 8 Jun 2026 08:25:42 +0200 Subject: [PATCH 2/4] * Remove deprecated command --- src/Resources/config/services.yaml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Resources/config/services.yaml b/src/Resources/config/services.yaml index 2352ab7..0a07502 100644 --- a/src/Resources/config/services.yaml +++ b/src/Resources/config/services.yaml @@ -26,12 +26,6 @@ services: $jobRepository: '@CodeRhapsodie\DataflowBundle\Repository\JobRepository' tags: ['console.command'] - CodeRhapsodie\DataflowBundle\Command\JobShowCommand: - arguments: - $jobGateway: '@CodeRhapsodie\DataflowBundle\Gateway\JobGateway' - $connectionFactory: '@CodeRhapsodie\DataflowBundle\Factory\ConnectionFactory' - tags: ['console.command'] - CodeRhapsodie\DataflowBundle\Command\RunPendingDataflowsCommand: arguments: $manager: '@CodeRhapsodie\DataflowBundle\Manager\ScheduledDataflowManagerInterface' From 85c70f35e3a2e35848cb3f2f88e46fa0936dc373 Mon Sep 17 00:00:00 2001 From: loic Date: Tue, 9 Jun 2026 08:43:14 +0200 Subject: [PATCH 3/4] Revert "* Remove deprecated command" This reverts commit 155f657d0105ad5102a1ff8ff7574dd357dae812. --- src/Resources/config/services.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Resources/config/services.yaml b/src/Resources/config/services.yaml index 0a07502..2352ab7 100644 --- a/src/Resources/config/services.yaml +++ b/src/Resources/config/services.yaml @@ -26,6 +26,12 @@ services: $jobRepository: '@CodeRhapsodie\DataflowBundle\Repository\JobRepository' tags: ['console.command'] + CodeRhapsodie\DataflowBundle\Command\JobShowCommand: + arguments: + $jobGateway: '@CodeRhapsodie\DataflowBundle\Gateway\JobGateway' + $connectionFactory: '@CodeRhapsodie\DataflowBundle\Factory\ConnectionFactory' + tags: ['console.command'] + CodeRhapsodie\DataflowBundle\Command\RunPendingDataflowsCommand: arguments: $manager: '@CodeRhapsodie\DataflowBundle\Manager\ScheduledDataflowManagerInterface' From 84517139b1f84a3851623d28bbc338f83a2053f1 Mon Sep 17 00:00:00 2001 From: loic Date: Tue, 9 Jun 2026 08:44:00 +0200 Subject: [PATCH 4/4] * Remove deprecated command --- src/Resources/config/services.yaml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Resources/config/services.yaml b/src/Resources/config/services.yaml index 2352ab7..22a7bd9 100644 --- a/src/Resources/config/services.yaml +++ b/src/Resources/config/services.yaml @@ -45,12 +45,6 @@ services: $connectionFactory: '@CodeRhapsodie\DataflowBundle\Factory\ConnectionFactory' tags: ['console.command'] - CodeRhapsodie\DataflowBundle\Command\SchemaCommand: - deprecated: - package: 'code-rhapsodie/dataflow-bundle' - version: '5.0' - tags: ['console.command'] - CodeRhapsodie\DataflowBundle\Command\DatabaseSchemaCommand: arguments: $connectionFactory: '@CodeRhapsodie\DataflowBundle\Factory\ConnectionFactory'