Conditions | 3 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
18 | public static function load($filename, $prefix = '') { |
||
19 | $reader = new ArrayFileReader($filename); |
||
20 | $new_config = $reader->loadArray(); |
||
21 | |||
22 | if (!empty($prefix)) { |
||
23 | foreach ($new_config as $key => $value) { |
||
24 | $new_config[ $prefix . '.' . $key ] = $value; |
||
25 | unset($new_config[ $key ]); |
||
26 | } |
||
27 | } |
||
28 | |||
29 | self::$config = merge(self::$config, $new_config); |
||
30 | } |
||
43 | } |