| Conditions | 3 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function read(Config $config) |
||
| 30 | { |
||
| 31 | $options = parse_ini_file($this->filename); |
||
| 32 | |||
| 33 | if (false === $options) { |
||
| 34 | throw new \InvalidArgumentException("Cannot parse configuration file '{$this->filename}'"); |
||
| 35 | } |
||
| 36 | |||
| 37 | foreach ($options as $name => $value) { |
||
| 38 | $config->set($name, $value); |
||
| 39 | } |
||
| 40 | } |
||
| 41 | } |
||
| 42 |