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

Breadcrumb

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

function PoolOptimizer::extractConflictConstraintsPerPackage

Disjunctive conflict constraints need to be considered in their own group. E.g. "^2.14 || ^3.3" needs to generate two conflict constraint groups in order for us to keep the best matching package for "^2.14" AND "^3.3" as otherwise, we'd only keep either one which can cause trouble (e.g. when using --prefer-lowest).

Return value

void

1 call to PoolOptimizer::extractConflictConstraintsPerPackage()
PoolOptimizer::prepare in vendor/composer/composer/src/Composer/DependencyResolver/PoolOptimizer.php

File

vendor/composer/composer/src/Composer/DependencyResolver/PoolOptimizer.php, line 452

Class

PoolOptimizer
Optimizes a given pool

Namespace

Composer\DependencyResolver

Code

private function extractConflictConstraintsPerPackage(string $package, ConstraintInterface $constraint) {
    foreach ($this->expandDisjunctiveMultiConstraints($constraint) as $expanded) {
        $this->conflictConstraintsPerPackage[$package][(string) $expanded] = $expanded;
    }
}

API Navigation

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