public function getModuleDeps($module)
    {
        $module = strtolower($module);
        
        if (!isset($this->deps[$module])) {
            $map     = array();
            $deps    = array();
            $modules = $this->findModules();
    
            foreach ($modules as $name) {
                $config     = $this->getModuleDefinition($name);
                $map[$name] = isset($config['name']) ? $config['name'] : null;
            }
    
            $config = $this->getModuleDefinition($module);
            
            foreach (['require', 'require-dev'] as $key) {
                if (isset($config[$key])) {
                    foreach ($config[$key] as $composerName => $composerVersion) {
                        $moduleName = array_search($composerName, $map);
        
                        if ($moduleName !== false) {
                            $deps[$moduleName] = ltrim($composerVersion, '<>=');
                        }
                    }
                }
            }
    
            $this->deps[$module] = $deps;
        }
    
        return $this->deps[$module];
    }
public function getModuleDeps($module)
    {
        $module = strtolower($module);
        
        if (!isset($this->deps[$module])) {
            $map     = array();
            $deps    = array();
            $modules = $this->findModules();
    
            foreach ($modules as $name) {
                $config     = $this->getModuleDefinition($name);
                $map[$name] = isset($config['name']) ? $config['name'] : null;
            }
    
            $config = $this->getModuleDefinition($module);
            
            foreach (['require', 'require-dev'] as $key) {
                if (isset($config[$key])) {
                    foreach ($config[$key] as $composerName => $composerVersion) {
                        $moduleName = array_search($composerName, $map);
        
                        if ($moduleName !== false) {
                            $deps[$moduleName] = ltrim($composerVersion, '<>=');
                        }
                    }
                }
            }
    
            $this->deps[$module] = $deps;
        }
    
        return $this->deps[$module];
    }
public function getModuleDeps ( $ module ) { $ module = strtolower ( $ module ) ; if ( ! isset ( $ this -> deps [ $ module ] ) ) { $ map = array ( ) ; $ deps = array ( ) ; $ modules = $ this -> findModules ( ) ; foreach ( $ modules as $ name ) { $ config = $ this -> getModuleDefinition ( $ name ) ; $ map [ $ name ] = isset ( $ config [ 'name' ] ) ? $ config [ 'name' ] : null ; } $ config = $ this -> getModuleDefinition ( $ module ) ; foreach ( [ 'require' , 'require-dev' ] as $ key ) { if ( isset ( $ config [ $ key ] ) ) { foreach ( $ config [ $ key ] as $ composerName => $ composerVersion ) { $ moduleName = array_search ( $ composerName , $ map ) ; if ( $ moduleName !== false ) { $ deps [ $ moduleName ] = ltrim ( $ composerVersion , '<>=' ) ; } } } } $ this -> deps [ $ module ] = $ deps ; } return $ this -> deps [ $ module ] ; }
Retrieve list of module dependencies

@param string $module
@return array
Retrieve list of module dependencies