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