Browse Source

Observe COMPOSER environment variable in init command

Michael Aherne 9 years ago
parent
commit
830644f374
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Composer/Command/InitCommand.php

+ 1 - 1
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()) {