function SvnDownloader::execute
Execute an SVN command and try to fix up the process with credentials if necessary.
Parameters
string $baseUrl Base URL of the repository:
non-empty-list<string> $command SVN command to run:
string $url SVN url:
string $cwd Working directory:
string $path Target for a checkout:
Throws
\RuntimeException
2 calls to SvnDownloader::execute()
- SvnDownloader::doInstall in vendor/
composer/ composer/ src/ Composer/ Downloader/ SvnDownloader.php - @inheritDoc
- SvnDownloader::doUpdate in vendor/
composer/ composer/ src/ Composer/ Downloader/ SvnDownloader.php - @inheritDoc
File
-
vendor/
composer/ composer/ src/ Composer/ Downloader/ SvnDownloader.php, line 116
Class
- SvnDownloader
- @author Ben Bieker <mail@ben-bieker.de> @author Till Klampaeckel <till@php.net>
Namespace
Composer\DownloaderCode
protected function execute(PackageInterface $package, string $baseUrl, array $command, string $url, ?string $cwd = null, ?string $path = null) : string {
$util = new SvnUtil($baseUrl, $this->io, $this->config, $this->process);
$util->setCacheCredentials($this->cacheCredentials);
try {
return $util->execute($command, $url, $cwd, $path, $this->io
->isVerbose());
} catch (\RuntimeException $e) {
throw new \RuntimeException($package->getPrettyName() . ' could not be downloaded, ' . $e->getMessage());
}
}