Преглед изворни кода

Observe COMPOSER environment variable in init command

Michael Aherne пре 9 година
родитељ
комит
830644f374
1 измењених фајлова са 1 додато и 1 уклоњено
  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()) {