protected function saveConfigForModule($class, array $arData)
{
$file = MODULE_PATH . Str::ucfirst($class::MODULE_NAME) . "/config.json";
$arConfigData = new \stdClass();
if (file_exists($file)) {
$arConfigData = json_decode(file_get_contents($file));
}
foreach ($arData as $key => $item) {
$key = strtolower($key);
$arConfigData->{$key} = $item;
}
file_put_contents($file, json_encode($arConfigData, JSON_PRETTY_PRINT));
}