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

Breadcrumb

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

function RepositorySet::createPool

Create a pool for dependency resolution from the packages in this repository set.

Parameters

list<string> $ignoredTypes Packages of those types are ignored:

list<string>|null $allowedTypes Only packages of those types are allowed if set to non-null:

1 call to RepositorySet::createPool()
RepositorySet::createPoolForPackages in vendor/composer/composer/src/Composer/Repository/RepositorySet.php

File

vendor/composer/composer/src/Composer/Repository/RepositorySet.php, line 318

Class

RepositorySet
@author Nils Adermann <naderman@naderman.de>

Namespace

Composer\Repository

Code

public function createPool(Request $request, IOInterface $io, ?EventDispatcher $eventDispatcher = null, ?PoolOptimizer $poolOptimizer = null, array $ignoredTypes = [], ?array $allowedTypes = null) : Pool {
    $poolBuilder = new PoolBuilder($this->acceptableStabilities, $this->stabilityFlags, $this->rootAliases, $this->rootReferences, $io, $eventDispatcher, $poolOptimizer, $this->temporaryConstraints);
    $poolBuilder->setIgnoredTypes($ignoredTypes);
    $poolBuilder->setAllowedTypes($allowedTypes);
    foreach ($this->repositories as $repo) {
        if (($repo instanceof InstalledRepositoryInterface || $repo instanceof InstalledRepository) && !$this->allowInstalledRepositories) {
            throw new \LogicException('The pool can not accept packages from an installed repository');
        }
    }
    $this->locked = true;
    return $poolBuilder->buildPool($this->repositories, $request);
}

API Navigation

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