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

Breadcrumb

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

function Factory::addLocalRepository

Parameters

Repository\RepositoryManager $rm:

1 call to Factory::addLocalRepository()
Factory::createComposer in vendor/composer/composer/src/Composer/Factory.php
Creates a Composer instance

File

vendor/composer/composer/src/Composer/Factory.php, line 472

Class

Factory
Creates a configured instance of composer.

Namespace

Composer

Code

protected function addLocalRepository(IOInterface $io, RepositoryManager $rm, string $vendorDir, RootPackageInterface $rootPackage, ?ProcessExecutor $process = null) : void {
    $fs = null;
    if ($process) {
        $fs = new Filesystem($process);
    }
    $rm->setLocalRepository(new Repository\InstalledFilesystemRepository(new JsonFile($vendorDir . '/composer/installed.json', null, $io), true, $rootPackage, $fs));
}

API Navigation

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