Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. BaseIO.php

function BaseIO::getAuthentication

@inheritDoc

Overrides IOInterface::getAuthentication

1 call to BaseIO::getAuthentication()
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 53

Class

BaseIO

Namespace

Composer\IO

Code

public function getAuthentication($repositoryName) {
    if (isset($this->authentications[$repositoryName])) {
        return $this->authentications[$repositoryName];
    }
    return [
        'username' => null,
        'password' => null,
    ];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal