Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | public function __construct(array $customConfig = null) |
||
12 | { |
||
13 | |||
14 | |||
15 | if( $customConfig===null){ |
||
16 | $paths = [ |
||
17 | dirname(__DIR__, 2) . '/viva-config.php', |
||
18 | dirname(__DIR__, 5) . '/viva-config.php' |
||
19 | ]; |
||
20 | $this->config = $this->loadConfigFile($paths); |
||
21 | |||
22 | }else{ |
||
23 | |||
24 | $this->config = $customConfig; |
||
25 | } |
||
64 |