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

Breadcrumb

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

function Perforce::syncCodeBase

File

vendor/composer/composer/src/Composer/Util/Perforce.php, line 351

Class

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

Namespace

Composer\Util

Code

public function syncCodeBase(?string $sourceReference) : void {
    $prevDir = Platform::getCwd();
    chdir($this->path);
    $p4SyncCommand = $this->generateP4Command('sync -f ');
    if (null !== $sourceReference) {
        $p4SyncCommand .= '@' . $sourceReference;
    }
    $this->executeCommand($p4SyncCommand);
    chdir($prevDir);
}

API Navigation

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