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

Breadcrumb

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

function JsonConfigSource::removeRepository

@inheritDoc

Overrides ConfigSourceInterface::removeRepository

File

vendor/composer/composer/src/Composer/Config/JsonConfigSource.php, line 89

Class

JsonConfigSource
JSON Configuration Source

Namespace

Composer\Config

Code

public function removeRepository(string $name) : void {
    $this->manipulateJson('removeRepository', static function (&$config, $repo) : void {
        unset($config['repositories'][$repo]);
    }, $name);
}

API Navigation

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