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

Breadcrumb

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

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

Composer

Code

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

API Navigation

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