Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LibraryInstaller.php

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\Installer

Code

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);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal