|
|
@ -38,9 +38,7 @@ class Perforce
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$this->windowsFlag = $isWindows;
|
|
|
|
$this->windowsFlag = $isWindows;
|
|
|
|
$this->p4Port = $port;
|
|
|
|
$this->p4Port = $port;
|
|
|
|
$this->path = $path;
|
|
|
|
$this->initializePath($path);
|
|
|
|
$fs = new Filesystem();
|
|
|
|
|
|
|
|
$fs->ensureDirectoryExists($path);
|
|
|
|
|
|
|
|
$this->process = $process;
|
|
|
|
$this->process = $process;
|
|
|
|
$this->initialize($repoConfig);
|
|
|
|
$this->initialize($repoConfig);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -131,6 +129,13 @@ class Perforce
|
|
|
|
return $this->path;
|
|
|
|
return $this->path;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function initializePath($path)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
$this->path = $path;
|
|
|
|
|
|
|
|
$fs = new Filesystem();
|
|
|
|
|
|
|
|
$fs->ensureDirectoryExists($path);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected function getPort()
|
|
|
|
protected function getPort()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return $this->p4Port;
|
|
|
|
return $this->p4Port;
|
|
|
|