| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function load($path) |
||
| 14 | { |
||
| 15 | $this->setSourceName($path); |
||
| 16 | |||
| 17 | // We silently skip any nonexistent config files, so that |
||
| 18 | // clients may simply `load` all of their candidates. |
||
| 19 | if (!file_exists($path)) { |
||
| 20 | $this->config = []; |
||
| 21 | return $this; |
||
| 22 | } |
||
| 23 | $this->config = (array) Yaml::parse(file_get_contents($path)); |
||
| 24 | return $this; |
||
| 25 | } |
||
| 26 | } |
||
| 27 |