mirror of
https://github.com/composer/composer
synced 2025-05-11 01:22:54 +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]);
|
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)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue