1 | <?php |
||
22 | class CliConfigurator |
||
23 | { |
||
24 | /** @var string */ |
||
25 | private $defaultObjectManagerName = 'doctrine.entitymanager.orm_default'; |
||
26 | |||
27 | /** @var string[] */ |
||
28 | private $commands = [ |
||
29 | 'doctrine.dbal_cmd.runsql', |
||
30 | 'doctrine.dbal_cmd.import', |
||
31 | 'doctrine.orm_cmd.clear_cache_metadata', |
||
32 | 'doctrine.orm_cmd.clear_cache_result', |
||
33 | 'doctrine.orm_cmd.clear_cache_query', |
||
34 | 'doctrine.orm_cmd.schema_tool_create', |
||
35 | 'doctrine.orm_cmd.schema_tool_update', |
||
36 | 'doctrine.orm_cmd.schema_tool_drop', |
||
37 | 'doctrine.orm_cmd.ensure_production_settings', |
||
38 | 'doctrine.orm_cmd.convert_d1_schema', |
||
39 | 'doctrine.orm_cmd.generate_repositories', |
||
40 | 'doctrine.orm_cmd.generate_entities', |
||
41 | 'doctrine.orm_cmd.generate_proxies', |
||
42 | 'doctrine.orm_cmd.convert_mapping', |
||
43 | 'doctrine.orm_cmd.run_dql', |
||
44 | 'doctrine.orm_cmd.validate_schema', |
||
45 | 'doctrine.orm_cmd.info', |
||
46 | ]; |
||
47 | |||
48 | /** @var string[] */ |
||
49 | private $migrationCommands = [ |
||
50 | 'doctrine.migrations_cmd.execute', |
||
51 | 'doctrine.migrations_cmd.generate', |
||
52 | 'doctrine.migrations_cmd.migrate', |
||
53 | 'doctrine.migrations_cmd.status', |
||
54 | 'doctrine.migrations_cmd.version', |
||
55 | 'doctrine.migrations_cmd.diff', |
||
56 | 'doctrine.migrations_cmd.latest', |
||
57 | ]; |
||
58 | |||
59 | /** @var ContainerInterface */ |
||
60 | private $container; |
||
61 | |||
62 | public function __construct(ContainerInterface $container) |
||
66 | |||
67 | public function configure(Application $cli) : void |
||
86 | |||
87 | /** |
||
88 | * @return mixed[] |
||
89 | */ |
||
90 | private function getHelpers(EntityManagerInterface $objectManager) : array |
||
105 | |||
106 | private function createObjectManagerInputOption() : InputOption |
||
116 | |||
117 | private function getObjectManagerName() : string |
||
127 | |||
128 | /** |
||
129 | * @return mixed[] |
||
130 | */ |
||
131 | private function getAvailableCommands() : array |
||
139 | } |
||
140 |