Changeset View
Changeset View
Standalone View
Standalone View
branches/5.3.x/core/kernel/utility/factory.php
Show First 20 Lines • Show All 115 Lines • ▼ Show 20 Line(s) | |||||
foreach ( $this->Application->ModuleInfo as $module_name => $module_info ) { | foreach ( $this->Application->ModuleInfo as $module_name => $module_info ) { | ||||
if ( $module_name == 'In-Portal' ) { | if ( $module_name == 'In-Portal' ) { | ||||
continue; | continue; | ||||
} | } | ||||
$this->namespaceMap[$module_info['ClassNamespace']] = rtrim($module_info['Path'], '/'); | $this->namespaceMap[$module_info['ClassNamespace']] = rtrim($module_info['Path'], '/'); | ||||
} | } | ||||
// Don't let class map builder rely on auto-loader (especially during upgrade). | |||||
require_once KERNEL_PATH . '/utility/ClassDiscovery/ClassMapBuilder.php'; | |||||
if ( defined('IS_INSTALL') && IS_INSTALL ) { | if ( defined('IS_INSTALL') && IS_INSTALL ) { | ||||
// During installation process all modules, because unit configs from all modules are scanned too. | // During installation process all modules, because unit configs from all modules are scanned too. | ||||
$class_map_builders = ClassMapBuilder::createBuilders(); | $class_map_builders = ClassMapBuilder::createBuilders(); | ||||
} | } | ||||
else { | else { | ||||
$class_map_builders = ClassMapBuilder::createBuilders($this->Application->ModuleInfo); | $class_map_builders = ClassMapBuilder::createBuilders($this->Application->ModuleInfo); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 379 Lines • Show Last 20 Lines |