@@ 20-39 (lines=20) @@ | ||
17 | /** |
|
18 | * @see Console\Command\Command |
|
19 | */ |
|
20 | protected function configure() |
|
21 | { |
|
22 | $this |
|
23 | ->setName('odm:generate:hydrators') |
|
24 | ->setDescription('Generates hydrator classes for document classes.') |
|
25 | ->setDefinition(array( |
|
26 | new InputOption( |
|
27 | 'filter', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, |
|
28 | 'A string pattern used to match documents that should be processed.' |
|
29 | ), |
|
30 | new InputArgument( |
|
31 | 'dest-path', InputArgument::OPTIONAL, |
|
32 | 'The path to generate your hydrator classes. If none is provided, it will attempt to grab from configuration.' |
|
33 | ), |
|
34 | )) |
|
35 | ->setHelp(<<<EOT |
|
36 | Generates hydrator classes for document classes. |
|
37 | EOT |
|
38 | ); |
|
39 | } |
|
40 | ||
41 | /** |
|
42 | * @see Console\Command\Command |
@@ 20-39 (lines=20) @@ | ||
17 | /** |
|
18 | * @see Console\Command\Command |
|
19 | */ |
|
20 | protected function configure() |
|
21 | { |
|
22 | $this |
|
23 | ->setName('odm:generate:persistent-collections') |
|
24 | ->setDescription('Generates persistent collection classes for custom collections.') |
|
25 | ->setDefinition(array( |
|
26 | new InputOption( |
|
27 | 'filter', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, |
|
28 | 'A string pattern used to match documents that should be processed.' |
|
29 | ), |
|
30 | new InputArgument( |
|
31 | 'dest-path', InputArgument::OPTIONAL, |
|
32 | 'The path to generate your proxy classes. If none is provided, it will attempt to grab from configuration.' |
|
33 | ), |
|
34 | )) |
|
35 | ->setHelp(<<<EOT |
|
36 | Generates persistent collection classes for custom collections. |
|
37 | EOT |
|
38 | ); |
|
39 | } |
|
40 | ||
41 | /** |
|
42 | * @see Console\Command\Command |
@@ 21-40 (lines=20) @@ | ||
18 | /** |
|
19 | * @see Console\Command\Command |
|
20 | */ |
|
21 | protected function configure() |
|
22 | { |
|
23 | $this |
|
24 | ->setName('odm:generate:proxies') |
|
25 | ->setDescription('Generates proxy classes for document classes.') |
|
26 | ->setDefinition(array( |
|
27 | new InputOption( |
|
28 | 'filter', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, |
|
29 | 'A string pattern used to match documents that should be processed.' |
|
30 | ), |
|
31 | new InputArgument( |
|
32 | 'dest-path', InputArgument::OPTIONAL, |
|
33 | 'The path to generate your proxy classes. If none is provided, it will attempt to grab from configuration.' |
|
34 | ), |
|
35 | )) |
|
36 | ->setHelp(<<<EOT |
|
37 | Generates proxy classes for document classes. |
|
38 | EOT |
|
39 | ); |
|
40 | } |
|
41 | ||
42 | /** |
|
43 | * @see Console\Command\Command |