function BaseIO::setAuthentication
@inheritDoc
Overrides IOInterface::setAuthentication
1 call to BaseIO::setAuthentication()
- BaseIO::checkAndSetAuthentication in vendor/
composer/ composer/ src/ Composer/ IO/ BaseIO.php - Check for overwrite and set the authentication information for the repository.
File
-
vendor/
composer/ composer/ src/ Composer/ IO/ BaseIO.php, line 65
Class
Namespace
Composer\IOCode
public function setAuthentication($repositoryName, $username, $password = null) {
$this->authentications[$repositoryName] = [
'username' => $username,
'password' => $password,
];
}