Skip to content

Commit

Permalink
Simplifies the config loader.
Browse files Browse the repository at this point in the history
  • Loading branch information
typhonius committed Apr 9, 2018
1 parent 0a57491 commit ce51f82
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions bin/acquiacli-robo.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,10 @@

$globalConfig = getenv('HOME') . '/.acquiacli/acquiacli.yml';
$projectConfig = $root . '/acquiacli.yml';
$paths = [
dirname(__DIR__) . '/default.acquiacli.yml',
$globalConfig,
$projectConfig,
];

foreach ($paths as $path) {
$processor->extend($loader->load($path));
}
$processor->extend($loader->load(dirname(__DIR__) . '/default.acquiacli.yml'));
$processor->extend($loader->load($globalConfig));
$processor->extend($loader->load($projectConfig));

$config->import($processor->export());
$config->set('config.project', $projectConfig);
Expand Down

0 comments on commit ce51f82

Please sign in to comment.