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

Breadcrumb

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

function PoolOptimizer::markPackageForRemoval

2 calls to PoolOptimizer::markPackageForRemoval()
PoolOptimizer::optimizeByIdenticalDependencies in vendor/composer/composer/src/Composer/DependencyResolver/PoolOptimizer.php
PoolOptimizer::optimizeImpossiblePackagesAway in vendor/composer/composer/src/Composer/DependencyResolver/PoolOptimizer.php
Use the list of locked packages to constrain the loaded packages This will reduce packages with significant numbers of historical versions to a smaller number and reduce the resulting rule set that is generated

File

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

Class

PoolOptimizer
Optimizes a given pool

Namespace

Composer\DependencyResolver

Code

private function markPackageForRemoval(int $id) : void {
    // We are not allowed to remove packages if they have been marked as irremovable
    if (isset($this->irremovablePackages[$id])) {
        throw new \LogicException('Attempted removing a package which was previously marked irremovable');
    }
    $this->packagesToRemove[$id] = true;
}

API Navigation

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