mirror of
https://github.com/composer/composer
synced 2025-05-10 09:02:59 +00:00
Use proper defaults for IO authentications
This commit is contained in:
parent
49d7d65933
commit
2617ec5d28
1 changed files with 3 additions and 3 deletions
|
@ -60,9 +60,9 @@ abstract class BaseIO implements IOInterface
|
||||||
*/
|
*/
|
||||||
public function loadConfiguration(Config $config)
|
public function loadConfiguration(Config $config)
|
||||||
{
|
{
|
||||||
$githubOauth = $config->get('github-oauth');
|
$githubOauth = $config->get('github-oauth') ?: array();
|
||||||
$gitlabOauth = $config->get('gitlab-oauth');
|
$gitlabOauth = $config->get('gitlab-oauth') ?: array();
|
||||||
$httpBasic = $config->get('http-basic');
|
$httpBasic = $config->get('http-basic') ?: array();
|
||||||
|
|
||||||
// Use COMPOSER_AUTH environment variable if set
|
// Use COMPOSER_AUTH environment variable if set
|
||||||
if ($composerAuthEnv = getenv('COMPOSER_AUTH')) {
|
if ($composerAuthEnv = getenv('COMPOSER_AUTH')) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue