1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 17:12:51 +00:00

Allow unsetting the whole platform config key

This commit is contained in:
Jordi Boggiano 2017-11-29 10:33:44 +01:00
parent 9850621c6b
commit ec63c213f8

View file

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