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); - } -} 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'