yupe\components\WebModule::getDependenciesAll PHP Method

getDependenciesAll() public method

Массив с именами модулей и их зависимостями
Since: 0.5
public getDependenciesAll ( ) : array
return array
    public function getDependenciesAll()
    {
        $modulesDependent = Yii::app()->getCache()->get('YupeModulesDependenciesAll');
        if ($modulesDependent === false) {
            $modules = Yii::app()->moduleManager->getModules(false, true);
            $modulesDependent = [];
            foreach ($modules['modules'] as $module) {
                $dep = $module->getDependencies();
                if (!empty($dep) && is_array($dep)) {
                    $modulesDependent[$module->getId()] = $dep;
                }
            }
            Yii::app()->getCache()->set('YupeModulesDependenciesAll', $modulesDependent, 0, new TagsCache('installedModules', 'yupe'));
        }
        return $modulesDependent;
    }