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

Breadcrumb

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

function HomeCommand::initializeRepos

Initializes repositories

Returns an array of repos in order they should be checked in

Return value

RepositoryInterface[]

1 call to HomeCommand::initializeRepos()
HomeCommand::execute in vendor/composer/composer/src/Composer/Command/HomeCommand.php
Executes the current command.

File

vendor/composer/composer/src/Composer/Command/HomeCommand.php, line 151

Class

HomeCommand
@author Robert Schönthal <seroscho@googlemail.com>

Namespace

Composer\Command

Code

private function initializeRepos() : array {
    $composer = $this->tryComposer();
    if ($composer) {
        return array_merge([
            new RootPackageRepository(clone $composer->getPackage()),
        ], [
            $composer->getRepositoryManager()
                ->getLocalRepository(),
        ], $composer->getRepositoryManager()
            ->getRepositories());
    }
    return RepositoryFactory::defaultReposWithDefaultManager($this->getIO());
}

API Navigation

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