From 30c22971b18b61a12cba72f38eb503132e738d9a Mon Sep 17 00:00:00 2001 From: rgraillon Date: Wed, 8 Apr 2020 15:15:11 +0200 Subject: [PATCH] Let the ManagerRegistry choose the default DocumentManager when option --dm is not specified --- Command/CommandHelper.php | 2 +- Command/MigrationsExecuteCommand.php | 2 +- Command/MigrationsGenerateCommand.php | 2 +- Command/MigrationsMigrateCommand.php | 2 +- Command/MigrationsStatusCommand.php | 2 +- Command/MigrationsVersionCommand.php | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Command/CommandHelper.php b/Command/CommandHelper.php index 979265f..83c319c 100644 --- a/Command/CommandHelper.php +++ b/Command/CommandHelper.php @@ -46,7 +46,7 @@ public static function configureMigrations(ContainerInterface $container, Config } /** - * @param string $dmName + * @param null|string $dmName */ public static function setApplicationDocumentManager(Application $application, $dmName): void { diff --git a/Command/MigrationsExecuteCommand.php b/Command/MigrationsExecuteCommand.php index 31e2580..8ec900e 100644 --- a/Command/MigrationsExecuteCommand.php +++ b/Command/MigrationsExecuteCommand.php @@ -28,7 +28,7 @@ protected function configure() $this ->setName('mongodb:migrations:execute') - ->addOption('dm', null, InputOption::VALUE_OPTIONAL, 'The document manager to use for this command.', 'default_document_manager') + ->addOption('dm', null, InputOption::VALUE_OPTIONAL, 'The document manager to use for this command.') ; } diff --git a/Command/MigrationsGenerateCommand.php b/Command/MigrationsGenerateCommand.php index 2218df3..593ccc0 100644 --- a/Command/MigrationsGenerateCommand.php +++ b/Command/MigrationsGenerateCommand.php @@ -28,7 +28,7 @@ protected function configure() $this ->setName('mongodb:migrations:generate') - ->addOption('dm', null, InputOption::VALUE_OPTIONAL, 'The document manager to use for this command.', 'default_document_manager') + ->addOption('dm', null, InputOption::VALUE_OPTIONAL, 'The document manager to use for this command.') ; } diff --git a/Command/MigrationsMigrateCommand.php b/Command/MigrationsMigrateCommand.php index 73a2ada..bbd107e 100644 --- a/Command/MigrationsMigrateCommand.php +++ b/Command/MigrationsMigrateCommand.php @@ -28,7 +28,7 @@ protected function configure() $this ->setName('mongodb:migrations:migrate') - ->addOption('dm', null, InputOption::VALUE_OPTIONAL, 'The document manager to use for this command.', 'default_document_manager') + ->addOption('dm', null, InputOption::VALUE_OPTIONAL, 'The document manager to use for this command.') ; } diff --git a/Command/MigrationsStatusCommand.php b/Command/MigrationsStatusCommand.php index 226a849..a48f761 100644 --- a/Command/MigrationsStatusCommand.php +++ b/Command/MigrationsStatusCommand.php @@ -28,7 +28,7 @@ protected function configure() $this ->setName('mongodb:migrations:status') - ->addOption('dm', null, InputOption::VALUE_OPTIONAL, 'The document manager to use for this command.', 'default_document_manager') + ->addOption('dm', null, InputOption::VALUE_OPTIONAL, 'The document manager to use for this command.') ; } diff --git a/Command/MigrationsVersionCommand.php b/Command/MigrationsVersionCommand.php index 42d262f..787a5f8 100644 --- a/Command/MigrationsVersionCommand.php +++ b/Command/MigrationsVersionCommand.php @@ -28,7 +28,7 @@ protected function configure() $this ->setName('mongodb:migrations:version') - ->addOption('dm', null, InputOption::VALUE_OPTIONAL, 'The document manager to use for this command.', 'default_document_manager') + ->addOption('dm', null, InputOption::VALUE_OPTIONAL, 'The document manager to use for this command.') ; }