SvnDownloader
extends VcsDownloader
in package
Tags
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
$cacheCredentials
protected
mixed
$cacheCredentials
= true
$config
protected
Config
$config
$filesystem
protected
Filesystem
$filesystem
$io
protected
IOInterface
$io
$process
protected
ProcessExecutor
$process
Methods
__construct()
public
__construct(IOInterface $io, Config $config[, ProcessExecutor $process = null ][, Filesystem $fs = null ]) : mixed
Parameters
- $io : IOInterface
- $config : Config
- $process : ProcessExecutor = null
- $fs : Filesystem = null
Return values
mixed —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 —doUpdate()
Updates specific package in specific folder from initial to target version.
public
doUpdate(PackageInterface $initial, PackageInterface $target, mixed $path, mixed $url) : mixed
Parameters
- $initial : PackageInterface
-
initial package
- $target : PackageInterface
-
updated package
- $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"
getLocalChanges()
{@inheritDoc}
public
getLocalChanges(PackageInterface $package, mixed $path) : mixed
Parameters
- $package : PackageInterface
- $path : mixed
Return values
mixed —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 —setOutputProgress()
Download progress information is not available for all VCS downloaders.
public
setOutputProgress(mixed $outputProgress) : DownloaderInterface
Parameters
- $outputProgress : mixed
Return values
DownloaderInterface —update()
Updates specific package in specific folder from initial to target version.
public
update(PackageInterface $initial, PackageInterface $target, mixed $path) : mixed
Parameters
- $initial : PackageInterface
-
initial package
- $target : PackageInterface
-
updated package
- $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
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