From 3896a6c2636e99997db88e3b89eae2d4b2348f55 Mon Sep 17 00:00:00 2001 From: Sebastien Chemin Date: Mon, 28 Sep 2015 13:22:38 +0200 Subject: [PATCH 1/2] Enable cmdline configuration for archive-dir and archive-format Examples of commands : composer config --global archive-dir $HOME/.composer/repo composer config --global archive-format zip --- src/Composer/Command/ConfigCommand.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Composer/Command/ConfigCommand.php b/src/Composer/Command/ConfigCommand.php index 2b7fd4846..8a363be24 100644 --- a/src/Composer/Command/ConfigCommand.php +++ b/src/Composer/Command/ConfigCommand.php @@ -293,6 +293,8 @@ EOT 'notify-on-install' => array($booleanValidator, $booleanNormalizer), 'vendor-dir' => array('is_string', function ($val) { return $val; }), 'bin-dir' => array('is_string', function ($val) { return $val; }), + 'archive-dir' => array('is_string', function ($val) { return $val; }), + 'archive-format' => array('is_string', function ($val) { return $val; }), 'cache-dir' => array('is_string', function ($val) { return $val; }), 'cache-files-dir' => array('is_string', function ($val) { return $val; }), 'cache-repo-dir' => array('is_string', function ($val) { return $val; }), From 13f6ae1820330fd9995ae20b51964b9f0617a737 Mon Sep 17 00:00:00 2001 From: Sebastien Chemin Date: Mon, 28 Sep 2015 13:23:24 +0200 Subject: [PATCH 2/2] Fix archive-dir documentation example Use an example of archive-dir configuration --- doc/06-config.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/06-config.md b/doc/06-config.md index 4716b93bb..f07b8ea57 100644 --- a/doc/06-config.md +++ b/doc/06-config.md @@ -162,7 +162,7 @@ Example: ```json { "config": { - "bin-dir": "bin" + "archive-dir": "/home/user/.composer/repo" } } ```