Manager/ModuleManager.php
public function disableModules($enabledModules)
    {
        $coreModules = $this->getCoreModules();

        foreach ($enabledModules as $moduleToDisable => $value) {
            if (isset($coreModules[$moduleToDisable])) {
                continue;
            }
            $module = $this->module->get($moduleToDisable);
            $module->disable();
        }
    }
public function disableModules($enabledModules)
    {
        $coreModules = $this->getCoreModules();

        foreach ($enabledModules as $moduleToDisable => $value) {
            if (isset($coreModules[$moduleToDisable])) {
                continue;
            }
            $module = $this->module->get($moduleToDisable);
            $module->disable();
        }
    }
public function disableModules ( $ enabledModules ) { $ coreModules = $ this -> getCoreModules ( ) ; foreach ( $ enabledModules as $ moduleToDisable => $ value ) { if ( isset ( $ coreModules [ $ moduleToDisable ] ) ) { continue ; } $ module = $ this -> module -> get ( $ moduleToDisable ) ; $ module -> disable ( ) ; } }
Disable the given modules.

@param $enabledModules
Disable the given modules .