function SvnDriver::execute
Execute an SVN command and try to fix up the process with credentials if necessary.
Parameters
non-empty-list<string> $command The svn command to run.:
string $url The SVN URL.:
Throws
\RuntimeException
4 calls to SvnDriver::execute()
- SvnDriver::getBranches in vendor/
composer/ composer/ src/ Composer/ Repository/ Vcs/ SvnDriver.php - @inheritDoc
- SvnDriver::getChangeDate in vendor/
composer/ composer/ src/ Composer/ Repository/ Vcs/ SvnDriver.php - @inheritDoc
- SvnDriver::getFileContent in vendor/
composer/ composer/ src/ Composer/ Repository/ Vcs/ SvnDriver.php - Return the content of $file or null if the file does not exist.
- SvnDriver::getTags in vendor/
composer/ composer/ src/ Composer/ Repository/ Vcs/ SvnDriver.php - @inheritDoc
File
-
vendor/
composer/ composer/ src/ Composer/ Repository/ Vcs/ SvnDriver.php, line 379
Class
- SvnDriver
- @author Jordi Boggiano <j.boggiano@seld.be> @author Till Klampaeckel <till@php.net>
Namespace
Composer\Repository\VcsCode
protected function execute(array $command, string $url) : string {
if (null === $this->util) {
$this->util = new SvnUtil($this->baseUrl, $this->io, $this->config, $this->process);
$this->util
->setCacheCredentials($this->cacheCredentials);
}
try {
return $this->util
->execute($command, $url);
} catch (\RuntimeException $e) {
if (null === $this->util
->binaryVersion()) {
throw new \RuntimeException('Failed to load ' . $this->url . ', svn was not found, check that it is installed and in your PATH env.' . "\n\n" . $this->process
->getErrorOutput());
}
throw new \RuntimeException('Repository ' . $this->url . ' could not be processed, ' . $e->getMessage());
}
}