1 | <?php |
||
15 | class SetupCommand extends AbstractCommand |
||
16 | { |
||
17 | /** |
||
18 | * The console command name. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $name = 'aimeos:setup'; |
||
23 | |||
24 | /** |
||
25 | * The console command description. |
||
26 | * |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $description = 'Initialize or update the Aimeos database tables'; |
||
30 | |||
31 | |||
32 | /** |
||
33 | * Execute the console command. |
||
34 | * |
||
35 | * @return mixed |
||
36 | */ |
||
37 | public function fire() |
||
65 | |||
66 | |||
67 | /** |
||
68 | * Get the console command arguments. |
||
69 | * |
||
70 | * @return array |
||
71 | */ |
||
72 | protected function getArguments() |
||
79 | |||
80 | |||
81 | /** |
||
82 | * Get the console command options. |
||
83 | * |
||
84 | * @return array |
||
85 | */ |
||
86 | protected function getOptions() |
||
92 | |||
93 | |||
94 | /** |
||
95 | * Returns the database configuration from the config object. |
||
96 | * |
||
97 | * @param \Aimeos\MW\Config\Iface $conf Config object |
||
98 | * @return array Multi-dimensional associative list of database configuration parameters |
||
99 | */ |
||
100 | protected function getDbConfig( \Aimeos\MW\Config\Iface $conf ) |
||
113 | |||
114 | |||
115 | /** |
||
116 | * Extracts the configuration options from the input object and updates the configuration values in the config object. |
||
117 | * |
||
118 | * @param \Aimeos\MW\Config\Iface $conf Configuration object |
||
119 | * @param array Associative list of database configurations |
||
120 | * @throws \RuntimeException If the format of the options is invalid |
||
121 | */ |
||
122 | protected function setOptions( \Aimeos\MW\Config\Iface $conf ) |
||
130 | } |
||
131 |