Changeset View
Changeset View
Standalone View
Standalone View
core/kernel/utility/unit_config.php
Show First 20 Lines • Show All 1080 Lines • ▼ Show 20 Line(s) | |||||
$this->_parseAggregatedTags(); | $this->_parseAggregatedTags(); | ||||
} | } | ||||
protected function _parseClasses() | protected function _parseClasses() | ||||
{ | { | ||||
$register_classes = $this->_getClasses(); | $register_classes = $this->_getClasses(); | ||||
foreach ($register_classes as $class_info) { | foreach ($register_classes as $class_info) { | ||||
$this->Application->registerClass( | // Thanks to static class map there is no need to specify file during class registration. | ||||
$class_info['class'], | $this->Application->registerClass($class_info['class'], '', $class_info['pseudo']); | ||||
$this->getBasePath() . DIRECTORY_SEPARATOR . $class_info['file'], | |||||
$class_info['pseudo'] | |||||
); | |||||
if ( isset($class_info['build_event']) && $class_info['build_event'] && $class_info['build_event'] != 'OnBuild' ) { | if ( isset($class_info['build_event']) && $class_info['build_event'] && $class_info['build_event'] != 'OnBuild' ) { | ||||
$this->Application->delayUnitProcessing('registerBuildEvent', Array ($class_info['pseudo'], $class_info['build_event'])); | $this->Application->delayUnitProcessing('registerBuildEvent', Array ($class_info['pseudo'], $class_info['build_event'])); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
protected function _getClasses() | protected function _getClasses() | ||||
▲ Show 20 Lines • Show All 301 Lines • Show Last 20 Lines |