function LibraryInstaller::__construct
Initializes library installer.
Parameters
Filesystem $filesystem:
BinaryInstaller $binaryInstaller:
4 calls to LibraryInstaller::__construct()
- Installer::__construct in vendor/
composer/ installers/ src/ Composer/ Installers/ Installer.php - Disables installers specified in main composer extra installer-disable list
- Installer::__construct in vendor/
composer/ installers/ src/ Composer/ Installers/ Installer.php - Disables installers specified in main composer extra installer-disable list
- PluginInstaller::__construct in vendor/
composer/ composer/ src/ Composer/ Installer/ PluginInstaller.php - Initializes library installer.
- PluginInstaller::__construct in vendor/
composer/ composer/ src/ Composer/ Installer/ PluginInstaller.php - Initializes library installer.
2 methods override LibraryInstaller::__construct()
- Installer::__construct in vendor/
composer/ installers/ src/ Composer/ Installers/ Installer.php - Disables installers specified in main composer extra installer-disable list
- PluginInstaller::__construct in vendor/
composer/ composer/ src/ Composer/ Installer/ PluginInstaller.php - Initializes library installer.
File
-
vendor/
composer/ composer/ src/ Composer/ Installer/ LibraryInstaller.php, line 56
Class
- LibraryInstaller
- Package installation manager.
Namespace
Composer\InstallerCode
public function __construct(IOInterface $io, PartialComposer $composer, ?string $type = 'library', ?Filesystem $filesystem = null, ?BinaryInstaller $binaryInstaller = null) {
$this->composer = $composer;
$this->downloadManager = $composer instanceof Composer ? $composer->getDownloadManager() : null;
$this->io = $io;
$this->type = $type;
$this->filesystem = $filesystem ?: new Filesystem();
$this->vendorDir = rtrim($composer->getConfig()
->get('vendor-dir'), '/');
$this->binaryInstaller = $binaryInstaller ?: new BinaryInstaller($this->io, rtrim($composer->getConfig()
->get('bin-dir'), '/'), $composer->getConfig()
->get('bin-compat'), $this->filesystem, $this->vendorDir);
}