From 830644f374fb1697c7e7230bac4a9ea9919d8102 Mon Sep 17 00:00:00 2001 From: Michael Aherne Date: Tue, 19 Apr 2016 10:51:44 +0100 Subject: [PATCH] Observe COMPOSER environment variable in init command --- src/Composer/Command/InitCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Command/InitCommand.php b/src/Composer/Command/InitCommand.php index c352b1829..d8ebe2e09 100644 --- a/src/Composer/Command/InitCommand.php +++ b/src/Composer/Command/InitCommand.php @@ -115,7 +115,7 @@ EOT } } - $file = new JsonFile('composer.json'); + $file = new JsonFile(Factory::getComposerFile()); $json = $file->encode($options); if ($input->isInteractive()) {