Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
28 | public function loadConfiguration($configFilePath) |
||
29 | { |
||
30 | if (is_file($configFilePath) === false) { |
||
31 | throw new ConfigurationFileNotFoundException("Configuration file $configFilePath does not exist."); |
||
32 | } |
||
33 | |||
34 | $configValues = Toml::parse($configFilePath); |
||
35 | |||
36 | $root = new Root($configValues); |
||
37 | $builder = $root->applyTo(new ConfigurationBuilder()); |
||
38 | |||
39 | return $builder->build(); |
||
40 | } |
||
41 | |||
43 |