瀏覽代碼

[DoctrineMongoDBBundle] fixed wrong command names in commands help messages

everzet 14 年之前
父節點
當前提交
da80c2867a

+ 4 - 4
src/Symfony/Bundle/DoctrineMongoDBBundle/Command/GenerateDocumentsDoctrineODMCommand.php

@@ -33,15 +33,15 @@ class GenerateDocumentsDoctrineODMCommand extends DoctrineODMCommand
             ->addArgument('bundle', InputArgument::REQUIRED, 'The bundle to initialize the document or documents in.')
             ->addArgument('bundle', InputArgument::REQUIRED, 'The bundle to initialize the document or documents in.')
             ->addOption('document', null, InputOption::VALUE_OPTIONAL, 'The document class to initialize (shortname without namespace).')
             ->addOption('document', null, InputOption::VALUE_OPTIONAL, 'The document class to initialize (shortname without namespace).')
             ->setHelp(<<<EOT
             ->setHelp(<<<EOT
-The <info>doctrine:generate:documents</info> command generates document classes and method stubs from your mapping information:
+The <info>doctrine:mongodb:generate:documents</info> command generates document classes and method stubs from your mapping information:
 
 
 You have to limit generation of documents to an individual bundle:
 You have to limit generation of documents to an individual bundle:
 
 
-  <info>./app/console doctrine:generate:documents MyCustomBundle</info>
+  <info>./app/console doctrine:mongodb:generate:documents MyCustomBundle</info>
 
 
 Alternatively, you can limit generation to a single document within a bundle:
 Alternatively, you can limit generation to a single document within a bundle:
 
 
-  <info>./app/console doctrine:generate:documents "MyCustomBundle" --document="User"</info>
+  <info>./app/console doctrine:mongodb:generate:documents "MyCustomBundle" --document="User"</info>
 
 
 You have to specify the shortname (without namespace) of the document you want to filter for.
 You have to specify the shortname (without namespace) of the document you want to filter for.
 EOT
 EOT
@@ -77,4 +77,4 @@ EOT
             throw new \RuntimeException("Bundle " . $bundleName . " does not contain any mapped documents.");
             throw new \RuntimeException("Bundle " . $bundleName . " does not contain any mapped documents.");
         }
         }
     }
     }
-}
+}

+ 4 - 4
src/Symfony/Bundle/DoctrineMongoDBBundle/Command/GenerateHydratorsDoctrineODMCommand.php

@@ -34,13 +34,13 @@ class GenerateHydratorsDoctrineODMCommand extends GenerateHydratorsCommand
             ->setName('doctrine:mongodb:generate:hydrators')
             ->setName('doctrine:mongodb:generate:hydrators')
             ->addOption('dm', null, InputOption::VALUE_OPTIONAL, 'The document manager to use for this command.')
             ->addOption('dm', null, InputOption::VALUE_OPTIONAL, 'The document manager to use for this command.')
             ->setHelp(<<<EOT
             ->setHelp(<<<EOT
-The <info>doctrine:generate:hydrators</info> command generates hydrator classes for your documents:
+The <info>doctrine:mongodb:generate:hydrators</info> command generates hydrator classes for your documents:
 
 
-  <info>./app/console doctrine:generate:hydrators</info>
+  <info>./app/console doctrine:mongodb:generate:hydrators</info>
 
 
 You can specify the document manager you want to generate the hydrators for:
 You can specify the document manager you want to generate the hydrators for:
 
 
-  <info>./app/console doctrine:generate:hydrators --dm=name</info>
+  <info>./app/console doctrine:mongodb:generate:hydrators --dm=name</info>
 EOT
 EOT
         );
         );
     }
     }
@@ -51,4 +51,4 @@ EOT
 
 
         return parent::execute($input, $output);
         return parent::execute($input, $output);
     }
     }
-}
+}

+ 4 - 4
src/Symfony/Bundle/DoctrineMongoDBBundle/Command/GenerateProxiesDoctrineODMCommand.php

@@ -34,13 +34,13 @@ class GenerateProxiesDoctrineODMCommand extends GenerateProxiesCommand
             ->setName('doctrine:mongodb:generate:proxies')
             ->setName('doctrine:mongodb:generate:proxies')
             ->addOption('dm', null, InputOption::VALUE_OPTIONAL, 'The document manager to use for this command.')
             ->addOption('dm', null, InputOption::VALUE_OPTIONAL, 'The document manager to use for this command.')
             ->setHelp(<<<EOT
             ->setHelp(<<<EOT
-The <info>doctrine:generate:proxies</info> command generates proxy classes for your default document manager:
+The <info>doctrine:mongodb:generate:proxies</info> command generates proxy classes for your default document manager:
 
 
-  <info>./app/console doctrine:generate:proxies</info>
+  <info>./app/console doctrine:mongodb:generate:proxies</info>
 
 
 You can specify the document manager you want to generate the proxies for:
 You can specify the document manager you want to generate the proxies for:
 
 
-  <info>./app/console doctrine:generate:proxies --dm=name</info>
+  <info>./app/console doctrine:mongodb:generate:proxies --dm=name</info>
 EOT
 EOT
         );
         );
     }
     }
@@ -51,4 +51,4 @@ EOT
 
 
         return parent::execute($input, $output);
         return parent::execute($input, $output);
     }
     }
-}
+}

+ 3 - 3
src/Symfony/Bundle/DoctrineMongoDBBundle/Command/GenerateRepositoriesDoctrineODMCommand.php

@@ -34,9 +34,9 @@ class GenerateRepositoriesDoctrineODMCommand extends DoctrineODMCommand
             ->addArgument('bundle', InputArgument::REQUIRED, 'The bundle to initialize the repositories in.')
             ->addArgument('bundle', InputArgument::REQUIRED, 'The bundle to initialize the repositories in.')
             ->addOption('document', null, InputOption::VALUE_OPTIONAL, 'The document class to generate the repository for (shortname without namespace).')
             ->addOption('document', null, InputOption::VALUE_OPTIONAL, 'The document class to generate the repository for (shortname without namespace).')
             ->setHelp(<<<EOT
             ->setHelp(<<<EOT
-The <info>doctrine:generate:repositories</info> command generates the configured document repository classes from your mapping information:
+The <info>doctrine:mongodb:generate:repositories</info> command generates the configured document repository classes from your mapping information:
 
 
-  <info>./app/console doctrine:generate:repositories</info>
+  <info>./app/console doctrine:mongodb:generate:repositories</info>
 EOT
 EOT
         );
         );
     }
     }
@@ -74,4 +74,4 @@ EOT
             throw new \RuntimeException("Bundle " . $bundleName . " does not contain any mapped documents.");
             throw new \RuntimeException("Bundle " . $bundleName . " does not contain any mapped documents.");
         }
         }
     }
     }
-}
+}

+ 4 - 4
src/Symfony/Bundle/DoctrineMongoDBBundle/Command/InfoDoctrineODMCommand.php

@@ -32,14 +32,14 @@ class InfoDoctrineODMCommand extends DoctrineODMCommand
             ->addOption('dm', null, InputOption::VALUE_OPTIONAL, 'The document manager to use for this command.')
             ->addOption('dm', null, InputOption::VALUE_OPTIONAL, 'The document manager to use for this command.')
             ->setDescription('Show basic information about all mapped documents.')
             ->setDescription('Show basic information about all mapped documents.')
             ->setHelp(<<<EOT
             ->setHelp(<<<EOT
-The <info>doctrine:mapping:info</info> shows basic information about which
+The <info>doctrine:mongodb:mapping:info</info> shows basic information about which
 documents exist and possibly if their mapping information contains errors or not.
 documents exist and possibly if their mapping information contains errors or not.
 
 
-  <info>./app/console doctrine:mapping:info</info>
+  <info>./app/console doctrine:mongodb:mapping:info</info>
 
 
 If you are using multiple document managers you can pick your choice with the <info>--dm</info> option:
 If you are using multiple document managers you can pick your choice with the <info>--dm</info> option:
 
 
-  <info>./app/console doctrine:mapping:info --dm=default</info>
+  <info>./app/console doctrine:mongodb:mapping:info --dm=default</info>
 EOT
 EOT
         );
         );
     }
     }
@@ -82,4 +82,4 @@ EOT
             }
             }
         }
         }
     }
     }
-}
+}