Conditions | 4 |
Paths | 4 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
38 | public function __construct($options = []) |
||
39 | { |
||
40 | $dir = __DIR__.'/../../../../../../'; |
||
41 | |||
42 | if (!empty($options) && isset($options['paths']['root'])) { |
||
43 | $dir = rtrim($options['paths']['root'], '/').'/'; |
||
44 | } |
||
45 | |||
46 | foreach (glob($dir.'config/*.php') as $file) { |
||
47 | $index = pathinfo($file)['filename']; |
||
48 | $this->config[$index] = require_once $file; |
||
49 | } |
||
83 |