فهرست منبع

Allow unsetting the whole platform config key

Jordi Boggiano 7 سال پیش
والد
کامیت
ec63c213f8
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  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)) {