Browse Source

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

Gennady Feldman 11 years ago
parent
commit
f8376a5b34
1 changed files with 12 additions and 0 deletions
  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) {