3 namespace Drush\Config\Loader;
5 use Drush\Internal\Config\Yaml\Yaml;
6 use Consolidation\Config\Loader\ConfigLoader;
9 * Load configuration files, and fill in any property values that
10 * need to be expanded.
12 class YamlConfigLoader extends ConfigLoader
14 public function load($path)
16 $this->setSourceName($path);
18 // We silently skip any nonexistent config files, so that
19 // clients may simply `load` all of their candidates.
20 if (!file_exists($path)) {
24 $this->config = (array) Yaml::parse(file_get_contents($path));