Browse Source

Allow unsetting the whole platform config key

Jordi Boggiano 7 years ago
parent
commit
ec63c213f8
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/Composer/Command/ConfigCommand.php

+ 3 - 0
src/Composer/Command/ConfigCommand.php

@@ -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)) {