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

Breadcrumb

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

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

BaseIO

Namespace

Composer\IO

Code

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

API Navigation

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