base/ModulesManager.php
public static function setAlreadyAddSubmodulesFor($module, $app = null)
    {
        if (empty($app)) {
            $app = Yii::$app;
        }
        $appKey = UniApplication::appKey($app);
        if($module instanceof YiiBaseModule) {
            static::$_modulesWithInstalledSubmodules[$appKey][$module::className()] = $module->uniqueId; // uniqueId for Yii::$app = ''
        }
    }
public static function setAlreadyAddSubmodulesFor($module, $app = null)
    {
        if (empty($app)) {
            $app = Yii::$app;
        }
        $appKey = UniApplication::appKey($app);
        if($module instanceof YiiBaseModule) {
            static::$_modulesWithInstalledSubmodules[$appKey][$module::className()] = $module->uniqueId; // uniqueId for Yii::$app = ''
        }
    }
public static function setAlreadyAddSubmodulesFor ( $ module , $ app = null ) { if ( empty ( $ app ) ) { $ app = Yii :: $ app ; } $ appKey = UniApplication :: appKey ( $ app ) ; if ( $ module instanceof YiiBaseModule ) { static :: $ _modulesWithInstalledSubmodules [ $ appKey ] [ $ module :: className ( ) ] = $ module -> uniqueId ; // uniqueId for Yii::$app = '' } }
Add new module to list modules with already installed submodules.
@param yii\base\Module $module
@param yii\base\Application $app
Add new module to list modules with already installed submodules .