1
0
Fork 0

Allow unsetting the whole platform config key

pull/6843/merge
Jordi Boggiano 2017-11-29 10:33:44 +01:00
parent 9850621c6b
commit ec63c213f8
1 changed files with 3 additions and 0 deletions

View File

@ -576,6 +576,9 @@ EOT
return $this->configSource->addConfigSetting($settingKey, $values[0]); return $this->configSource->addConfigSetting($settingKey, $values[0]);
} }
if ($settingKey === 'platform' && $input->getOption('unset')) {
return $this->configSource->removeConfigSetting($settingKey);
}
// handle auth // handle auth
if (preg_match('/^(bitbucket-oauth|github-oauth|gitlab-oauth|gitlab-token|http-basic)\.(.+)/', $settingKey, $matches)) { if (preg_match('/^(bitbucket-oauth|github-oauth|gitlab-oauth|gitlab-token|http-basic)\.(.+)/', $settingKey, $matches)) {