3 namespace Consolidation\Config\Loader;
5 use Symfony\Component\Yaml\Yaml;
8 * Load configuration files, and fill in any property values that
11 class YamlConfigLoader extends ConfigLoader
13 public function load($path)
15 $this->setSourceName($path);
17 // We silently skip any nonexistent config files, so that
18 // clients may simply `load` all of their candidates.
19 if (!file_exists($path)) {
23 $this->config = (array) Yaml::parse(file_get_contents($path));