1 | <?php |
||
22 | class Configurator |
||
23 | { |
||
24 | protected $filename; |
||
25 | protected $installSteps; |
||
26 | protected $updateSteps; |
||
27 | protected $parameters; |
||
28 | protected $kernelDir; |
||
29 | |||
30 | public function __construct($kernelDir) |
||
39 | |||
40 | /** |
||
41 | * @param StepInterface $step |
||
42 | */ |
||
43 | public function addStep(StepInterface $step) |
||
52 | |||
53 | /** |
||
54 | * @param integer $step |
||
55 | * |
||
56 | * @return StepInterface |
||
57 | */ |
||
58 | public function getInstallStep($step) |
||
64 | |||
65 | /** |
||
66 | * @param integer $step |
||
67 | * |
||
68 | * @return StepInterface |
||
69 | */ |
||
70 | public function getUpdateStep($step) |
||
76 | |||
77 | /** |
||
78 | * @return integer |
||
79 | */ |
||
80 | public function getInstallStepCount() |
||
84 | |||
85 | /** |
||
86 | * @return integer |
||
87 | */ |
||
88 | public function getUpdateStepCount() |
||
92 | |||
93 | /** |
||
94 | * @return array |
||
95 | */ |
||
96 | public function getRequirements() |
||
108 | |||
109 | private function getCoreRequirements() |
||
127 | |||
128 | private function getStepRequirements(StepInterface $step) |
||
138 | |||
139 | /** |
||
140 | * Reads parameters from file. |
||
141 | * |
||
142 | * @return array |
||
143 | */ |
||
144 | protected function read() |
||
162 | |||
163 | /** |
||
164 | * Writes parameters to parameters.yml or temporary in the cache directory. |
||
165 | * |
||
166 | * @return integer |
||
167 | */ |
||
168 | public function write() |
||
174 | |||
175 | /** |
||
176 | * Renders parameters as a string. |
||
177 | * |
||
178 | * @return string |
||
179 | */ |
||
180 | public function render() |
||
184 | |||
185 | public function getConfigParameters() |
||
189 | |||
190 | public function isFileWritable() |
||
194 | |||
195 | public function clean() |
||
201 | |||
202 | /** |
||
203 | * @return array |
||
204 | */ |
||
205 | public function getParameters() |
||
209 | |||
210 | /** |
||
211 | * @param array $parameters |
||
212 | */ |
||
213 | public function mergeParameters($parameters) |
||
217 | |||
218 | public function getWhitelistFilepath() |
||
222 | |||
223 | public function getKernelDir() |
||
227 | |||
228 | /** |
||
229 | * getCacheFilename |
||
230 | * |
||
231 | * @return string |
||
232 | */ |
||
233 | protected function getCacheFilename() |
||
237 | } |
||
238 |
If you suppress an error, we recommend checking for the error condition explicitly: