@@ 44-64 (lines=21) @@ | ||
41 | /** |
|
42 | * {@inheritdoc} |
|
43 | */ |
|
44 | protected function configure() |
|
45 | { |
|
46 | $this |
|
47 | ->setName('orm:generate-proxies') |
|
48 | ->setAliases(['orm:generate:proxies']) |
|
49 | ->setDescription('Generates proxy classes for entity classes.') |
|
50 | ->setDefinition( |
|
51 | [ |
|
52 | new InputOption( |
|
53 | 'filter', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, |
|
54 | 'A string pattern used to match entities that should be processed.' |
|
55 | ), |
|
56 | new InputArgument( |
|
57 | 'dest-path', InputArgument::OPTIONAL, |
|
58 | 'The path to generate your proxy classes. If none is provided, it will attempt to grab from configuration.' |
|
59 | ), |
|
60 | ] |
|
61 | ) |
|
62 | ->setHelp(<<<EOT |
|
63 | Generates proxy classes for entity classes. |
|
64 | EOT |
|
65 | ); |
|
66 | } |
|
67 |
@@ 45-64 (lines=20) @@ | ||
42 | /** |
|
43 | * {@inheritdoc} |
|
44 | */ |
|
45 | protected function configure() |
|
46 | { |
|
47 | $this |
|
48 | ->setName('orm:generate-repositories') |
|
49 | ->setAliases(['orm:generate:repositories']) |
|
50 | ->setDescription('Generate repository classes from your mapping information.') |
|
51 | ->setDefinition( |
|
52 | [ |
|
53 | new InputOption( |
|
54 | 'filter', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, |
|
55 | 'A string pattern used to match entities that should be processed.' |
|
56 | ), |
|
57 | new InputArgument( |
|
58 | 'dest-path', InputArgument::REQUIRED, 'The path to generate your repository classes.' |
|
59 | ) |
|
60 | ] |
|
61 | ) |
|
62 | ->setHelp(<<<EOT |
|
63 | Generate repository classes from your mapping information. |
|
64 | EOT |
|
65 | ); |
|
66 | } |
|
67 |