Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | protected function decode(string $configPath): array |
||
24 | { |
||
25 | try { |
||
26 | $configArray = Yaml::parse(file_get_contents($configPath)); |
||
27 | } catch (ParseException $exception) { |
||
28 | throw new InvalidConfigException(sprintf( |
||
29 | 'Unable to parse YAML config: %s', |
||
30 | $exception->getMessage() |
||
31 | )); |
||
32 | } |
||
33 | return $configArray; |
||
34 | } |
||
35 | } |
||
36 |