| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | public function load($filename) |
||
| 10 | { |
||
| 11 | if (!class_exists('Symfony\\Component\\Yaml\\Yaml')) { |
||
| 12 | throw new \RuntimeException('Unable to read yaml as the Symfony Yaml Component is not installed.'); |
||
| 13 | } |
||
| 14 | |||
| 15 | $input = file_get_contents($filename); |
||
| 16 | $config = Yaml::parse($input); |
||
| 17 | return $config ?: array(); |
||
| 18 | } |
||
| 19 | |||
| 25 |