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

Breadcrumb

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

function Perforce::initialize

@phpstan-param RepoConfig $repoConfig

1 call to Perforce::initialize()
Perforce::__construct in vendor/composer/composer/src/Composer/Util/Perforce.php
@phpstan-param RepoConfig $repoConfig

File

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

Class

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

Namespace

Composer\Util

Code

public function initialize($repoConfig) : void {
    $this->uniquePerforceClientName = $this->generateUniquePerforceClientName();
    if (!$repoConfig) {
        return;
    }
    if (isset($repoConfig['unique_perforce_client_name'])) {
        $this->uniquePerforceClientName = $repoConfig['unique_perforce_client_name'];
    }
    if (isset($repoConfig['depot'])) {
        $this->p4Depot = $repoConfig['depot'];
    }
    if (isset($repoConfig['branch'])) {
        $this->p4Branch = $repoConfig['branch'];
    }
    if (isset($repoConfig['p4user'])) {
        $this->p4User = $repoConfig['p4user'];
    }
    else {
        $this->p4User = $this->getP4variable('P4USER');
    }
    if (isset($repoConfig['p4password'])) {
        $this->p4Password = $repoConfig['p4password'];
    }
}

API Navigation

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