Skip to content

Commit

Permalink
Add importConfigurationFile method. (hechoendrupal#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmolivas committed Feb 5, 2017
1 parent 395bb4c commit 4baa629
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/Utils/ConfigurationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,14 @@ public function loadExtendConfiguration()
return null;
}
include_once $autoloadFile;
$extendFile = $directory . 'extend.console.config.yml';
$extendFile= $directory . 'extend.console.config.yml';

if (is_file($extendFile) && file_get_contents($extendFile)!='') {
$builder = new YamlFileConfigurationBuilder([$extendFile]);
$this->importConfigurationFile($extendFile);
}

public function importConfigurationFile($configFile) {
if (is_file($configFile) && file_get_contents($configFile)!='') {
$builder = new YamlFileConfigurationBuilder([$configFile]);
$this->configuration->import($builder->build());
}
}
Expand Down

0 comments on commit 4baa629

Please sign in to comment.