Properties

$url

$url : string

Type

string

$originUrl

$originUrl : string

Type

string

$repoConfig

$repoConfig : array

Type

array

$infoCache

$infoCache : array

Type

array

$baseUrl

$baseUrl : 

Type

$tags

$tags : 

Type

$branches

$branches : 

Type

$rootIdentifier

$rootIdentifier : 

Type

$trunkPath

$trunkPath : 

Type

$branchesPath

$branchesPath : 

Type

$tagsPath

$tagsPath : 

Type

$packagePath

$packagePath : 

Type

$cacheCredentials

$cacheCredentials : 

Type

Methods

__construct()

__construct(array  $repoConfig, \Composer\IO\IOInterface  $io, \Composer\Config  $config, \Composer\Util\ProcessExecutor  $process = null, \Composer\Util\RemoteFilesystem  $remoteFilesystem = null) 

Constructor.

Parameters

array $repoConfig

The repository configuration

\Composer\IO\IOInterface $io

The IO instance

\Composer\Config $config

The composer configuration

\Composer\Util\ProcessExecutor $process

Process instance, injectable for mocking

\Composer\Util\RemoteFilesystem $remoteFilesystem

Remote Filesystem, injectable for mocking

getComposerInformation()

getComposerInformation(string  $identifier) : array

Return the composer.json file information

Parameters

string $identifier

Any identifier to a specific branch/tag/commit

Returns

array —

containing all infos from the composer.json file

hasComposerFile()

hasComposerFile(string  $identifier) : boolean

Return true if the repository has a composer file for a given identifier, false otherwise.

Parameters

string $identifier

Any identifier to a specific branch/tag/commit

Returns

boolean —

Whether the repository has a composer file for a given identifier.

cleanup()

cleanup() 

Performs any cleanup necessary as the driver is not longer needed

initialize()

initialize() 

{@inheritDoc}

getRootIdentifier()

getRootIdentifier() 

{@inheritDoc}

getUrl()

getUrl() 

{@inheritDoc}

getSource()

getSource(  $identifier) 

{@inheritDoc}

Parameters

$identifier

getDist()

getDist(  $identifier) 

{@inheritDoc}

Parameters

$identifier

getFileContent()

getFileContent(string  $file, string  $identifier) 

Parameters

string $file
string $identifier

getChangeDate()

getChangeDate(  $identifier) 

{@inheritdoc}

Parameters

$identifier

getTags()

getTags() 

{@inheritDoc}

getBranches()

getBranches() 

{@inheritDoc}

shouldCache()

shouldCache(string  $identifier) : boolean

Returns whether or not the given $identifier should be cached or not.

Parameters

string $identifier

Returns

boolean

getBaseComposerInformation()

getBaseComposerInformation(  $identifier) 

Parameters

$identifier

getScheme()

getScheme() : string

Get the https or http protocol depending on SSL support.

Call this only if you know that the server supports both.

Returns

string —

The correct type of protocol

getContents()

getContents(string  $url) : mixed

Get the remote content.

Parameters

string $url

The URL of content

Returns

mixed —

The result

normalizeUrl()

normalizeUrl(string  $url) : string

An absolute path (leading '/') is converted to a file:// url.

Parameters

string $url

Returns

string

execute()

execute(string  $command, string  $url) : string

Execute an SVN command and try to fix up the process with credentials if necessary.

Parameters

string $command

The svn command to run.

string $url

The SVN URL.

Throws

\RuntimeException

Returns

string

buildIdentifier()

buildIdentifier(string  $baseDir, integer  $revision) : string

Build the identifier respecting "package-path" config option

Parameters

string $baseDir

The path to trunk/branch/tag

integer $revision

The revision mark to add to identifier

Returns

string