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