소스 검색

Fix to load the auth information before the root package gets installed.

Stephan Hochdörfer 11 년 전
부모
커밋
493ebbaacb
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/Composer/Command/CreateProjectCommand.php

+ 3 - 0
src/Composer/Command/CreateProjectCommand.php

@@ -133,6 +133,9 @@ EOT
     {
         $oldCwd = getcwd();
 
+        // we need to manually load the configuration to pass the auth credentials to the io interface!
+        $io->loadConfiguration($config);
+
         if ($packageName !== null) {
             $installedFromVcs = $this->installRootPackage($io, $config, $packageName, $directory, $packageVersion, $stability, $preferSource, $preferDist, $installDevPackages, $repositoryUrl, $disablePlugins, $noScripts, $keepVcs, $noProgress);
         } else {