Skip to content

Commit

Permalink
Merge pull request #33 from graillus/fix-default-document-manager
Browse files Browse the repository at this point in the history
Let the ManagerRegistry choose the default DocumentManager
  • Loading branch information
caciobanu authored Apr 30, 2020
2 parents 48bff17 + 30c2297 commit 9d1a33d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Command/CommandHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion Command/MigrationsExecuteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
;
}

Expand Down
2 changes: 1 addition & 1 deletion Command/MigrationsGenerateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
;
}

Expand Down
2 changes: 1 addition & 1 deletion Command/MigrationsMigrateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
;
}

Expand Down
2 changes: 1 addition & 1 deletion Command/MigrationsStatusCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
;
}

Expand Down
2 changes: 1 addition & 1 deletion Command/MigrationsVersionCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
;
}

Expand Down

0 comments on commit 9d1a33d

Please sign in to comment.