Documentation

SvnDownloader extends VcsDownloader
in package

Tags
author

Ben Bieker mail@ben-bieker.de

author

Till Klampaeckel till@php.net

Table of Contents

$cacheCredentials  : mixed
$config  : Config
$filesystem  : Filesystem
$io  : IOInterface
$process  : ProcessExecutor
__construct()  : mixed
doDownload()  : mixed
Downloads specific package into specific folder.
doUpdate()  : mixed
Updates specific package in specific folder from initial to target version.
download()  : mixed
Downloads specific package into specific folder.
getInstallationSource()  : string
Returns installation source (either source or dist).
getLocalChanges()  : mixed
{@inheritDoc}
getVcsReference()  : string|null
Gets the VCS Reference for the package at path
remove()  : mixed
Removes specific package from specific folder.
setOutputProgress()  : DownloaderInterface
Download progress information is not available for all VCS downloaders.
update()  : mixed
Updates specific package in specific folder from initial to target version.
cleanChanges()  : mixed
Prompt the user to check if changes should be stashed/removed or the operation aborted
discardChanges()  : mixed
execute()  : string
Execute an SVN command and try to fix up the process with credentials if necessary.
getCommitLogs()  : string
Fetches the commit logs between two commits
hasMetadataRepository()  : bool
Checks if VCS metadata repository has been initialized repository example: .git|.svn|.hg
reapplyChanges()  : mixed
Guarantee that no changes have been made to the local copy

Properties

Methods

doDownload()

Downloads specific package into specific folder.

public doDownload(PackageInterface $package, mixed $path, mixed $url) : mixed
Parameters
$package : PackageInterface

package instance

$path : mixed

download path

$url : mixed

package url

Return values
mixed

download()

Downloads specific package into specific folder.

public download(PackageInterface $package, mixed $path) : mixed
Parameters
$package : PackageInterface

package instance

$path : mixed

download path

Return values
mixed

getInstallationSource()

Returns installation source (either source or dist).

public getInstallationSource() : string
Return values
string

"source" or "dist"

getVcsReference()

Gets the VCS Reference for the package at path

public getVcsReference(PackageInterface $package, mixed $path) : string|null
Parameters
$package : PackageInterface

package directory

$path : mixed

package directory

Return values
string|null

reference or null

remove()

Removes specific package from specific folder.

public remove(PackageInterface $package, mixed $path) : mixed
Parameters
$package : PackageInterface

package instance

$path : mixed

download path

Return values
mixed

cleanChanges()

Prompt the user to check if changes should be stashed/removed or the operation aborted

protected cleanChanges(PackageInterface $package, mixed $path, mixed $update) : mixed
Parameters
$package : PackageInterface
$path : mixed
$update : mixed

if true (update) the changes can be stashed and reapplied after an update, if false (remove) the changes should be assumed to be lost if the operation is not aborted

Return values
mixed

discardChanges()

protected discardChanges(mixed $path) : mixed
Parameters
$path : mixed
Return values
mixed

execute()

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

protected execute(string $baseUrl, string $command, string $url[, string $cwd = null ][, string $path = null ]) : string
Parameters
$baseUrl : string

Base URL of the repository

$command : string

SVN command to run

$url : string

SVN url

$cwd : string = null

Working directory

$path : string = null

Target for a checkout

Tags
throws
RuntimeException
Return values
string

getCommitLogs()

Fetches the commit logs between two commits

protected getCommitLogs(mixed $fromReference, mixed $toReference, mixed $path) : string
Parameters
$fromReference : mixed

the source reference

$toReference : mixed

the target reference

$path : mixed

the package path

Return values
string

hasMetadataRepository()

Checks if VCS metadata repository has been initialized repository example: .git|.svn|.hg

protected hasMetadataRepository(mixed $path) : bool
Parameters
$path : mixed
Return values
bool

reapplyChanges()

Guarantee that no changes have been made to the local copy

protected reapplyChanges(string $path) : mixed
Parameters
$path : string
Tags
throws
RuntimeException

in case the operation must be aborted or the patch does not apply cleanly

Return values
mixed

Search results