/** * Install and upgrade modules. * * @param UtilityComponent $utilityComponent */ function installModules($utilityComponent) { // What to do about module config files, these should be copied into // core/configs when a module is installed, but we can't do that // as there are already module files there, and we may not want // all the module files // we could copy the existing ones somewhere, then copy them back at the end // but I don't like that idea // for now do nothing $modules = $utilityComponent->getAllModules(); foreach ($modules as $moduleName => $module) { $utilityComponent->installModule($moduleName); } }