mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
d794b11910
commit
4da7a70cdd
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user