function PerforceDownloader::initPerforce
1 call to PerforceDownloader::initPerforce()
- PerforceDownloader::doInstall in vendor/
composer/ composer/ src/ Composer/ Downloader/ PerforceDownloader.php - @inheritDoc
File
-
vendor/
composer/ composer/ src/ Composer/ Downloader/ PerforceDownloader.php, line 66
Class
- PerforceDownloader
- @author Matt Whittom <Matt.Whittom@veteransunited.com>
Namespace
Composer\DownloaderCode
public function initPerforce(PackageInterface $package, string $path, string $url) : void {
if (!empty($this->perforce)) {
$this->perforce
->initializePath($path);
return;
}
$repository = $package->getRepository();
$repoConfig = null;
if ($repository instanceof VcsRepository) {
$repoConfig = $this->getRepoConfig($repository);
}
$this->perforce = Perforce::create($repoConfig, $url, $path, $this->process, $this->io);
}