protected function addJsonToRootModuleFile(stdClass $jsonData, RootModuleFile $moduleFile) { if (isset($jsonData->{'override-order'})) { $moduleFile->setOverrideOrder((array) $jsonData->{'override-order'}); } if (isset($jsonData->plugins)) { $moduleFile->setPluginClasses($jsonData->plugins); } if (isset($jsonData->config)) { $config = $moduleFile->getConfig(); foreach ($this->objectsToArrays($jsonData->config) as $key => $value) { $config->set($key, $value); } } if (isset($jsonData->modules)) { foreach ($jsonData->modules as $moduleName => $moduleData) { $installInfo = new InstallInfo($moduleName, $moduleData->{'install-path'}); if (isset($moduleData->env)) { $installInfo->setEnvironment($moduleData->env); } if (isset($moduleData->installer)) { $installInfo->setInstallerName($moduleData->installer); } if (isset($moduleData->{'disabled-bindings'})) { foreach ($moduleData->{'disabled-bindings'} as $uuid) { $installInfo->addDisabledBindingUuid(Uuid::fromString($uuid)); } } $moduleFile->addInstallInfo($installInfo); } } }