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

Breadcrumb

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

function Config::disableRepoByName

1 call to Config::disableRepoByName()
Config::merge in vendor/composer/composer/src/Composer/Config.php
Merges new config values with the existing ones (overriding)

File

vendor/composer/composer/src/Composer/Config.php, line 583

Class

Config
@author Jordi Boggiano <j.boggiano@seld.be>

Namespace

Composer

Code

private function disableRepoByName(string $name) : void {
    if (isset($this->repositories[$name])) {
        unset($this->repositories[$name]);
    }
    elseif ($name === 'packagist') {
        // BC support for default "packagist" named repo
        unset($this->repositories['packagist.org']);
    }
}
RSS feed
Powered by Drupal