private function dumpSingleProviderModulesFromVendor(array &$modulesList, $providerDir)
    {
        $directoryIterator = new \DirectoryIterator($providerDir);
        foreach ($directoryIterator as $libDir) {
            if ($libDir->isDot()) {
                continue;
            }
            //creates path to Module.php file
            $moduleSettingsFile = implode(DIRECTORY_SEPARATOR, [
                $providerDir, $libDir, 'module', self::MODULE_SETTINGS_FILE
            ]);

            if (!file_exists($moduleSettingsFile)) {
                continue;
            }

            $baseName = Text::camelize($libDir->getBasename());
            if (!isset($modulesList[$baseName])) {
                $modulesList[$baseName] = [
                    'className' =>  $baseName
                        . '\\'
                        . pathinfo(self::MODULE_SETTINGS_FILE, PATHINFO_FILENAME),
                    'path'  =>  $moduleSettingsFile
                ];
            }
        }
    }
private function dumpSingleProviderModulesFromVendor(array &$modulesList, $providerDir)
    {
        $directoryIterator = new \DirectoryIterator($providerDir);
        foreach ($directoryIterator as $libDir) {
            if ($libDir->isDot()) {
                continue;
            }
            //creates path to Module.php file
            $moduleSettingsFile = implode(DIRECTORY_SEPARATOR, [
                $providerDir, $libDir, 'module', self::MODULE_SETTINGS_FILE
            ]);

            if (!file_exists($moduleSettingsFile)) {
                continue;
            }

            $baseName = Text::camelize($libDir->getBasename());
            if (!isset($modulesList[$baseName])) {
                $modulesList[$baseName] = [
                    'className' =>  $baseName
                        . '\\'
                        . pathinfo(self::MODULE_SETTINGS_FILE, PATHINFO_FILENAME),
                    'path'  =>  $moduleSettingsFile
                ];
            }
        }
    }
private function dumpSingleProviderModulesFromVendor ( array & $ modulesList , $ providerDir ) { $ directoryIterator = new \ DirectoryIterator ( $ providerDir ) ; foreach ( $ directoryIterator as $ libDir ) { if ( $ libDir -> isDot ( ) ) { continue ; } //creates path to Module.php file $ moduleSettingsFile = implode ( DIRECTORY_SEPARATOR , [ $ providerDir , $ libDir , 'module' , self :: MODULE_SETTINGS_FILE ] ) ; if ( ! file_exists ( $ moduleSettingsFile ) ) { continue ; } $ baseName = Text :: camelize ( $ libDir -> getBasename ( ) ) ; if ( ! isset ( $ modulesList [ $ baseName ] ) ) { $ modulesList [ $ baseName ] = [ 'className' => $ baseName . '\\' . pathinfo ( self :: MODULE_SETTINGS_FILE , PATHINFO_FILENAME ) , 'path' => $ moduleSettingsFile ] ; } } }
Extracts Vegas modules from specific provider in vendor directory.

@param array $modulesList
@param string $providerDir directory path for module provider (e.x. vegas-cmf)
Extracts Vegas modules from specific provider in vendor directory .