function SvnDownloader::doInstall
@inheritDoc
Overrides VcsDownloader::doInstall
File
-
vendor/
composer/ composer/ src/ Composer/ Downloader/ SvnDownloader.php, line 48
Class
- SvnDownloader
- @author Ben Bieker <mail@ben-bieker.de> @author Till Klampaeckel <till@php.net>
Namespace
Composer\DownloaderCode
protected function doInstall(PackageInterface $package, string $path, string $url) : PromiseInterface {
SvnUtil::cleanEnv();
$ref = $package->getSourceReference();
$repo = $package->getRepository();
if ($repo instanceof VcsRepository) {
$repoConfig = $repo->getRepoConfig();
if (array_key_exists('svn-cache-credentials', $repoConfig)) {
$this->cacheCredentials = (bool) $repoConfig['svn-cache-credentials'];
}
}
$this->io
->writeError(" Checking out " . $package->getSourceReference());
$this->execute($package, $url, [
'svn',
'co',
], sprintf("%s/%s", $url, $ref), null, $path);
return \React\Promise\resolve(null);
}