Composer API
Class

Composer\Util\Perforce

class Perforce

Methods

__construct($repoConfig, $port, $path, ProcessExecutor $process, $isWindows, IOInterface $io)

static  create($repoConfig, $port, $path, ProcessExecutor $process, IOInterface $io)

static  checkServerExists($url, ProcessExecutor $processExecutor)

initialize($repoConfig)

initializeDepotAndBranch($depot, $branch)

generateUniquePerforceClientName()

cleanupClientSpec()

getClient()

initializePath($path)

setStream($stream)

isStream()

getStream()

getStreamWithoutLabel($stream)

getP4ClientSpec()

getUser()

setUser($user)

queryP4User()

queryP4Password()

generateP4Command($command, $useClient = true)

isLoggedIn()

connectClient()

syncCodeBase($sourceReference)

writeClientSpecToFile($spec)

writeP4ClientSpec()

windowsLogin($password)

p4Login()

getComposerInformation($identifier)

getFileContent($file, $identifier)

getFilePath($file, $identifier)

getBranches()

getTags()

checkStream()

mixed|null getCommitLogs($fromReference $fromReference, $toReference $toReference)

getFilesystem()

setFilesystem(Filesystem $fs)

Details

at line 42
public __construct($repoConfig, $port, $path, ProcessExecutor $process, $isWindows, IOInterface $io)

Parameters

$repoConfig
$port
$path
ProcessExecutor $process
$isWindows
IOInterface $io

at line 52
static public create($repoConfig, $port, $path, ProcessExecutor $process, IOInterface $io)

Parameters

$repoConfig
$port
$path
ProcessExecutor $process
IOInterface $io

at line 57
static public checkServerExists($url, ProcessExecutor $processExecutor)

Parameters

$url
ProcessExecutor $processExecutor

at line 64
public initialize($repoConfig)

Parameters

$repoConfig

at line 90
public initializeDepotAndBranch($depot, $branch)

Parameters

$depot
$branch

at line 100
public generateUniquePerforceClientName()

at line 105
public cleanupClientSpec()

at line 123
public getClient()

at line 138
public initializePath($path)

Parameters

$path

at line 150
public setStream($stream)

Parameters

$stream

at line 160
public isStream()

at line 165
public getStream()

at line 178
public getStreamWithoutLabel($stream)

Parameters

$stream

at line 188
public getP4ClientSpec()

at line 193
public getUser()

at line 198
public setUser($user)

Parameters

$user

at line 203
public queryP4User()

at line 254
public queryP4Password()

at line 268
public generateP4Command($command, $useClient = true)

Parameters

$command
$useClient

at line 280
public isLoggedIn()

at line 300
public connectClient()

at line 308
public syncCodeBase($sourceReference)

Parameters

$sourceReference

at line 320
public writeClientSpecToFile($spec)

Parameters

$spec

at line 343
public writeP4ClientSpec()

at line 369
public windowsLogin($password)

Parameters

$password

at line 377
public p4Login()

at line 395
public getComposerInformation($identifier)

Parameters

$identifier

at line 406
public getFileContent($file, $identifier)

Parameters

$file
$identifier

at line 421
public getFilePath($file, $identifier)

Parameters

$file
$identifier

at line 448
public getBranches()

at line 479
public getTags()

at line 497
public checkStream()

at line 545
public mixed|null getCommitLogs($fromReference $fromReference, $toReference $toReference)

Parameters

$fromReference $fromReference
$toReference $toReference

Return Value

mixed|null

at line 563
public getFilesystem()

at line 572
public setFilesystem(Filesystem $fs)

Parameters

Filesystem $fs