Browse Source

Merge pull request #3027 from bitExpert/fix/create_project_auth

Load auth information before root package gets installed
Jordi Boggiano 11 years ago
parent
commit
615402c861
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/Composer/Command/CreateProjectCommand.php

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

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