BUGFIX: Allow use of ClassInfo methods in _config.php when manifest is being rebuilt

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63981 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2008-10-09 05:29:34 +00:00
parent d794b11910
commit 4da7a70cdd

View File

@ -178,6 +178,13 @@ class ManifestBuilder {
global $_CLASS_MANIFEST;
$_CLASS_MANIFEST = $classManifest;
// Load in a temporary all-classes array for using while building the manifest
// @todo Manifestbuilder is tightly convoluted and gets really hard to debug. We have catch-22s betweeen
// db connection, value of project(), and ClassInfo responses... It needs to be untangled.
global $_ALL_CLASSES;
$allClasses = ManifestBuilder::allClasses($classManifest, array());
$_ALL_CLASSES = $allClasses;
// _config.php manifest
$topLevel = scandir($baseDir);
foreach($topLevel as $filename) {