function Svn::getCredentialArgs
Return the credential string for the svn command.
Adds --no-auth-cache when credentials are present.
Return value
list<string>
1 call to Svn::getCredentialArgs()
- Svn::getCommand in vendor/
composer/ composer/ src/ Composer/ Util/ Svn.php - A method to create the svn commands run.
File
-
vendor/
composer/ composer/ src/ Composer/ Util/ Svn.php, line 244
Class
- Svn
- @author Till Klampaeckel <till@php.net> @author Jordi Boggiano <j.boggiano@seld.be>
Namespace
Composer\UtilCode
protected function getCredentialArgs() : array {
if (!$this->hasAuth()) {
return [];
}
return array_merge($this->getAuthCacheArgs(), [
'--username',
$this->getUsername(),
'--password',
$this->getPassword(),
]);
}