Browse Source

Updating ConfigCommand so that we can set github-domains from the command line.

Gennady Feldman 11 năm trước cách đây
mục cha
commit
f8376a5b34
1 tập tin đã thay đổi với 12 bổ sung0 xóa
  1. 12 0
      src/Composer/Command/ConfigCommand.php

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

@@ -308,6 +308,18 @@ EOT
                     return $vals;
                 }
             ),
+            'github-domains' => array(
+                function ($vals) {
+                    if (!is_array($vals)) {
+                        return 'array expected';
+                    }
+
+                    return true;
+                },
+                function ($vals) {
+                    return $vals;
+                }
+            ),
         );
 
         foreach ($uniqueConfigValues as $name => $callbacks) {