Skip to content
Browse files

load system-level default config, and then system-level mode config, …

…instead of just the mode without default. fixes #29
  • Loading branch information...
1 parent df259b9 commit de68d9200a7b1f193923a3b30c19f3ac9d6240ad @pmjones pmjones committed
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/Aura/Framework/Bootstrap/Factory.php
View
7 src/Aura/Framework/Bootstrap/Factory.php
@@ -140,12 +140,17 @@ public function prep($mode)
require $file;
};
- // read config files
+ // read package config files
$cache = $this->readCacheConfig($system, $read, $mode);
if (! $cache) {
$this->readPackageConfig($system, $read, $mode);
}
+
+ // read system config files
$this->readSystemConfig($system, $read, $mode);
+ if ($mode != 'default') {
+ $this->readSystemConfig($system, $read, $mode);
+ }
// lock the container
$di->lock();

0 comments on commit de68d92

Please sign in to comment.
Something went wrong with that request. Please try again.