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

Breadcrumb

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

function PackageDiscoveryTrait::getRepos

2 calls to PackageDiscoveryTrait::getRepos()
InitCommand::interact in vendor/composer/composer/src/Composer/Command/InitCommand.php
@inheritDoc
PackageDiscoveryTrait::getRepositorySet in vendor/composer/composer/src/Composer/Command/PackageDiscoveryTrait.php

File

vendor/composer/composer/src/Composer/Command/PackageDiscoveryTrait.php, line 44

Class

PackageDiscoveryTrait
@internal

Namespace

Composer\Command

Code

protected function getRepos() : CompositeRepository {
    if (null === $this->repos) {
        $this->repos = new CompositeRepository(array_merge([
            new PlatformRepository(),
        ], RepositoryFactory::defaultReposWithDefaultManager($this->getIO())));
    }
    return $this->repos;
}

API Navigation

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