public function getCoreModules($excludeModulesOnReturn = [])
    {
        $modules = [
            'melisdbdeploy' => 'MelisDbDeploy',
            'meliscomposerdeploy' => 'MelisComposerDeploy',
            'meliscore' => 'MelisCore',
            'melissites' => 'MelisSites',
            'melisassetmanager' => 'MelisAssetManager',
        ];

        if ($excludeModulesOnReturn) {
            foreach ($excludeModulesOnReturn as $exMod) {
                if (isset($modules[$exMod]) && $modules[$exMod]) {
                    unset($modules[$exMod]);
                }
            }
        }

        return $modules;
    }
public function getCoreModules($excludeModulesOnReturn = [])
    {
        $modules = [
            'melisdbdeploy' => 'MelisDbDeploy',
            'meliscomposerdeploy' => 'MelisComposerDeploy',
            'meliscore' => 'MelisCore',
            'melissites' => 'MelisSites',
            'melisassetmanager' => 'MelisAssetManager',
        ];

        if ($excludeModulesOnReturn) {
            foreach ($excludeModulesOnReturn as $exMod) {
                if (isset($modules[$exMod]) && $modules[$exMod]) {
                    unset($modules[$exMod]);
                }
            }
        }

        return $modules;
    }
public function getCoreModules ( $ excludeModulesOnReturn = [ ] ) { $ modules = [ 'melisdbdeploy' => 'MelisDbDeploy' , 'meliscomposerdeploy' => 'MelisComposerDeploy' , 'meliscore' => 'MelisCore' , 'melissites' => 'MelisSites' , 'melisassetmanager' => 'MelisAssetManager' , ] ; if ( $ excludeModulesOnReturn ) { foreach ( $ excludeModulesOnReturn as $ exMod ) { if ( isset ( $ modules [ $ exMod ] ) && $ modules [ $ exMod ] ) { unset ( $ modules [ $ exMod ] ) ; } } } return $ modules ; }
Returns all the important modules

@param array $excludeModulesOnReturn | exclude some modules that you don't want to be included in return

@return array
Returns all the important modules