18 if ($this->
isRegistered() && !$this->isMigratedToStandartSettingNames())
20 $this->migrateToStandartSettingNames();
31 private function isMigratedToStandartSettingNames(): bool
33 return $this->optionManager->getOption(InternalOption::MIGRATED_TO_STANDART_SETTING_NAMES,
'N') ===
'Y';
36 private function migrateToStandartSettingNames(): void
38 $options = $this->optionManager->getOptions();
39 if (isset($options[
'apiKey']))
42 InternalOption::API_KEY => $options[
'apiKey'],
43 InternalOption::MIGRATED_TO_STANDART_SETTING_NAMES =>
'Y'
46 $this->optionManager->setOptions($migratedOptions);