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\UtilCode
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'];
}
}