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:
parent
9850621c6b
commit
ec63c213f8
1 changed files with 3 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue