function Factory::createDefaultInstallers
1 call to Factory::createDefaultInstallers()
- Factory::createComposer in vendor/
composer/ composer/ src/ Composer/ Factory.php - Creates a Composer instance
File
-
vendor/
composer/ composer/ src/ Composer/ Factory.php, line 582
Class
- Factory
- Creates a configured instance of composer.
Namespace
ComposerCode
protected function createDefaultInstallers(Installer\InstallationManager $im, PartialComposer $composer, IOInterface $io, ?ProcessExecutor $process = null) : void {
$fs = new Filesystem($process);
$binaryInstaller = new Installer\BinaryInstaller($io, rtrim($composer->getConfig()
->get('bin-dir'), '/'), $composer->getConfig()
->get('bin-compat'), $fs, rtrim($composer->getConfig()
->get('vendor-dir'), '/'));
$im->addInstaller(new Installer\LibraryInstaller($io, $composer, null, $fs, $binaryInstaller));
$im->addInstaller(new Installer\PluginInstaller($io, $composer, $fs, $binaryInstaller));
$im->addInstaller(new Installer\MetapackageInstaller($io));
}