- //reload the config cache
- $loader = new ConfigFileLoader($config_file);
- $loader->setupCache($configCache);
-
+ //append config file to the config cache
+ $config = include($config_file);
+ if (!is_array($config)) {
+ throw new Exception('Error loading config file ' . $config_file);
+ }
+ $configCache->load($config, Cache::SOURCE_FILE);