protected function ConfigurationExportManager::createConfigurationsFile in Configuration Management 7.3
1 call to ConfigurationExportManager::createConfigurationsFile()
File
- src/
Helpers/ ConfigurationExportManager.php, line 234 - ConfigurationExportManager.php handles the export of configurations.
Class
Namespace
Configuration\HelpersCode
protected function createConfigurationsFile($config_path) {
$jsonPretty = new JsonPretty();
$configurations_list = new \StdClass();
ksort($this->exported);
$this->modules = array_unique($this->modules);
sort($this->modules);
foreach (array_keys($this->exported) as $key) {
ksort($this->exported[$key]);
}
$configurations_list->configurations = (object) $this->exported;
$configurations_list->modules = array_values($this->modules);
$this->fs
->dumpFile($config_path . '/configurations.json', $jsonPretty
->prettify($configurations_list, JSON_UNESCAPED_SLASHES, ' '));
}