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

Breadcrumb

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

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

Code

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

API Navigation

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