lib/Doctrine/ODM/MongoDB/Tools/Console/Command/GenerateHydratorsCommand.php 1 location
|
@@ 29-48 (lines=20) @@
|
| 26 |
|
/** |
| 27 |
|
* @see Console\Command\Command |
| 28 |
|
*/ |
| 29 |
|
protected function configure() |
| 30 |
|
{ |
| 31 |
|
$this |
| 32 |
|
->setName('odm:generate:hydrators') |
| 33 |
|
->setDescription('Generates hydrator classes for document classes.') |
| 34 |
|
->setDefinition([ |
| 35 |
|
new InputOption( |
| 36 |
|
'filter', |
| 37 |
|
null, |
| 38 |
|
InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, |
| 39 |
|
'A string pattern used to match documents that should be processed.' |
| 40 |
|
), |
| 41 |
|
new InputArgument( |
| 42 |
|
'dest-path', |
| 43 |
|
InputArgument::OPTIONAL, |
| 44 |
|
'The path to generate your hydrator classes. If none is provided, it will attempt to grab from configuration.' |
| 45 |
|
), |
| 46 |
|
]) |
| 47 |
|
->setHelp(<<<EOT |
| 48 |
|
Generates hydrator classes for document classes. |
| 49 |
|
EOT |
| 50 |
|
); |
| 51 |
|
} |
lib/Doctrine/ODM/MongoDB/Tools/Console/Command/GeneratePersistentCollectionsCommand.php 1 location
|
@@ 29-48 (lines=20) @@
|
| 26 |
|
/** |
| 27 |
|
* @see Console\Command\Command |
| 28 |
|
*/ |
| 29 |
|
protected function configure() |
| 30 |
|
{ |
| 31 |
|
$this |
| 32 |
|
->setName('odm:generate:persistent-collections') |
| 33 |
|
->setDescription('Generates persistent collection classes for custom collections.') |
| 34 |
|
->setDefinition([ |
| 35 |
|
new InputOption( |
| 36 |
|
'filter', |
| 37 |
|
null, |
| 38 |
|
InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, |
| 39 |
|
'A string pattern used to match documents that should be processed.' |
| 40 |
|
), |
| 41 |
|
new InputArgument( |
| 42 |
|
'dest-path', |
| 43 |
|
InputArgument::OPTIONAL, |
| 44 |
|
'The path to generate your proxy classes. If none is provided, it will attempt to grab from configuration.' |
| 45 |
|
), |
| 46 |
|
]) |
| 47 |
|
->setHelp(<<<EOT |
| 48 |
|
Generates persistent collection classes for custom collections. |
| 49 |
|
EOT |
| 50 |
|
); |
| 51 |
|
} |
lib/Doctrine/ODM/MongoDB/Tools/Console/Command/GenerateProxiesCommand.php 1 location
|
@@ 31-50 (lines=20) @@
|
| 28 |
|
/** |
| 29 |
|
* @see Console\Command\Command |
| 30 |
|
*/ |
| 31 |
|
protected function configure() |
| 32 |
|
{ |
| 33 |
|
$this |
| 34 |
|
->setName('odm:generate:proxies') |
| 35 |
|
->setDescription('Generates proxy classes for document classes.') |
| 36 |
|
->setDefinition([ |
| 37 |
|
new InputOption( |
| 38 |
|
'filter', |
| 39 |
|
null, |
| 40 |
|
InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, |
| 41 |
|
'A string pattern used to match documents that should be processed.' |
| 42 |
|
), |
| 43 |
|
new InputArgument( |
| 44 |
|
'dest-path', |
| 45 |
|
InputArgument::OPTIONAL, |
| 46 |
|
'The path to generate your proxy classes. If none is provided, it will attempt to grab from configuration.' |
| 47 |
|
), |
| 48 |
|
]) |
| 49 |
|
->setHelp(<<<EOT |
| 50 |
|
Generates proxy classes for document classes. |
| 51 |
|
EOT |
| 52 |
|
); |
| 53 |
|
} |