1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-11 01:22:54 +00:00

Replace references of a11n with a12n where appropriate

Authorization => Authentication.
This commit is contained in:
Igor Wiedler 2012-11-07 13:33:50 +01:00
parent a2c2652695
commit 4959c2bdc6
13 changed files with 57 additions and 57 deletions

View file

@ -57,7 +57,7 @@ class GitHub
// if available use token from git config
if (0 === $this->process->execute('git config github.accesstoken', $output)) {
$this->io->setAuthorization($originUrl, trim($output), 'x-oauth-basic');
$this->io->setAuthentication($originUrl, trim($output), 'x-oauth-basic');
return true;
}
@ -85,7 +85,7 @@ class GitHub
try {
$username = $this->io->ask('Username: ');
$password = $this->io->askAndHideAnswer('Password: ');
$this->io->setAuthorization($originUrl, $username, $password);
$this->io->setAuthentication($originUrl, $username, $password);
// build up OAuth app name
$appName = 'Composer';
@ -114,7 +114,7 @@ class GitHub
throw $e;
}
$this->io->setAuthorization($originUrl, $contents['token'], 'x-oauth-basic');
$this->io->setAuthentication($originUrl, $contents['token'], 'x-oauth-basic');
// store value in user config
$githubTokens = $this->config->get('github-oauth') ?: array();