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

Breadcrumb

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

function PerforceDownloader::doInstall

@inheritDoc

Overrides VcsDownloader::doInstall

1 call to PerforceDownloader::doInstall()
PerforceDownloader::doUpdate in vendor/composer/composer/src/Composer/Downloader/PerforceDownloader.php
@inheritDoc

File

vendor/composer/composer/src/Composer/Downloader/PerforceDownloader.php, line 39

Class

PerforceDownloader
@author Matt Whittom <Matt.Whittom@veteransunited.com>

Namespace

Composer\Downloader

Code

public function doInstall(PackageInterface $package, string $path, string $url) : PromiseInterface {
    $ref = $package->getSourceReference();
    $label = $this->getLabelFromSourceReference((string) $ref);
    $this->io
        ->writeError('Cloning ' . $ref);
    $this->initPerforce($package, $path, $url);
    $this->perforce
        ->setStream($ref);
    $this->perforce
        ->p4Login();
    $this->perforce
        ->writeP4ClientSpec();
    $this->perforce
        ->connectClient();
    $this->perforce
        ->syncCodeBase($label);
    $this->perforce
        ->cleanupClientSpec();
    return \React\Promise\resolve(null);
}

API Navigation

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