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

Breadcrumb

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

function PerforceDriver::initialize

@inheritDoc

Overrides VcsDriverInterface::initialize

File

vendor/composer/composer/src/Composer/Repository/Vcs/PerforceDriver.php, line 38

Class

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

Namespace

Composer\Repository\Vcs

Code

public function initialize() : void {
    $this->depot = $this->repoConfig['depot'];
    $this->branch = '';
    if (!empty($this->repoConfig['branch'])) {
        $this->branch = $this->repoConfig['branch'];
    }
    $this->initPerforce($this->repoConfig);
    $this->perforce
        ->p4Login();
    $this->perforce
        ->checkStream();
    $this->perforce
        ->writeP4ClientSpec();
    $this->perforce
        ->connectClient();
}
RSS feed
Powered by Drupal