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