src/Core/CommandCollector.php
private function getPathsOfAvailableModules()
    {
        $config = Registry::getConfig();
        $modulesRootPath = $config->getModulesDir();
        $modulePaths = $config->getConfigParam('aModulePaths');

        if (!is_dir($modulesRootPath))
            return [];

        if (!is_array($modulePaths))
            return [];

        $fullModulePaths = array_map(function ($modulePath) use ($modulesRootPath) {
            return $modulesRootPath . $modulePath;
        }, array_values($modulePaths));

        return array_filter($fullModulePaths, function ($fullModulePath) {
            return is_dir($fullModulePath);
        });
    }
private function getPathsOfAvailableModules()
    {
        $config = Registry::getConfig();
        $modulesRootPath = $config->getModulesDir();
        $modulePaths = $config->getConfigParam('aModulePaths');

        if (!is_dir($modulesRootPath))
            return [];

        if (!is_array($modulePaths))
            return [];

        $fullModulePaths = array_map(function ($modulePath) use ($modulesRootPath) {
            return $modulesRootPath . $modulePath;
        }, array_values($modulePaths));

        return array_filter($fullModulePaths, function ($fullModulePath) {
            return is_dir($fullModulePath);
        });
    }
private function getPathsOfAvailableModules ( ) { $ config = Registry :: getConfig ( ) ; $ modulesRootPath = $ config -> getModulesDir ( ) ; $ modulePaths = $ config -> getConfigParam ( 'aModulePaths' ) ; if ( ! is_dir ( $ modulesRootPath ) ) return [ ] ; if ( ! is_array ( $ modulePaths ) ) return [ ] ; $ fullModulePaths = array_map ( function ( $ modulePath ) use ( $ modulesRootPath ) { return $ modulesRootPath . $ modulePath ; } , array_values ( $ modulePaths ) ) ; return array_filter ( $ fullModulePaths , function ( $ fullModulePath ) { return is_dir ( $ fullModulePath ) ; } ) ; }
Return list of paths to all available modules.

@return string[]
Return list of paths to all available modules .