ENHANCEMENT: Enable config manifest loading in core

This commit is contained in:
Hamish Friedlander 2012-03-09 17:20:20 +13:00
parent 5ff095e561
commit dff6c638ee
2 changed files with 4 additions and 4 deletions

View File

@ -258,6 +258,10 @@ $loader = SS_ClassLoader::instance();
$loader->registerAutoloader();
$loader->pushManifest($manifest);
// Now that the class manifest is up, load the configuration
$configManifest = new SS_ConfigManifest(BASE_PATH, false, $flush);
Config::inst()->pushConfigManifest($configManifest);
SS_TemplateLoader::instance()->pushManifest(new SS_TemplateManifest(
BASE_PATH, false, isset($_GET['flush'])
));

View File

@ -50,10 +50,6 @@ class SS_ClassLoader {
*/
public function pushManifest(SS_ClassManifest $manifest) {
$this->manifests[] = $manifest;
foreach ($manifest->getConfigs() as $config) {
require_once $config;
}
}
/**