mirror of
https://github.com/composer/composer
synced 2025-05-11 09:32:55 +00:00
Performance improvements to create-project
This commit is contained in:
parent
c14bc368b0
commit
f9f86f03ae
1 changed files with 5 additions and 0 deletions
|
@ -142,6 +142,7 @@ EOT
|
|||
$package = $candidate;
|
||||
}
|
||||
}
|
||||
unset($candidates);
|
||||
|
||||
$io->write('<info>Installing ' . $package->getName() . ' (' . VersionParser::formatVersion($package, false) . ')</info>', true);
|
||||
|
||||
|
@ -164,6 +165,10 @@ EOT
|
|||
|
||||
putenv('COMPOSER_ROOT_VERSION='.$package->getPrettyVersion());
|
||||
|
||||
// clean up memory
|
||||
unset($dm, $config, $projectInstaller, $sourceRepo, $package);
|
||||
|
||||
// install dependencies of the created project
|
||||
$composer = Factory::create($io);
|
||||
$installer = Installer::create($io, $composer);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue