luya\base\BaseBootstrap::registerComponents PHP Method

registerComponents() private method

Register all components from the modules registerComponents() method to the Applcation.
private registerComponents ( object $app )
$app object Luya Appliation `\luya\base\Application`.
    private function registerComponents($app)
    {
        foreach ($this->getModules() as $id => $module) {
            // set an alias for all user modules
            Yii::setAlias('@' . $id, $module->getBasePath());
            // see if the module has a registerComponents method
            foreach ($module->registerComponents() as $componentId => $definition) {
                if (!$app->has($componentId)) {
                    Yii::trace('Register component ' . $componentId, __METHOD__);
                    $app->set($componentId, $definition);
                }
            }
        }
    }