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

Breadcrumb

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

function Request::fixLockedPackage

Marks a locked package fixed. So it's treated irremovable like a platform package.

This is necessary for the composer install step which verifies the lock file integrity and should not allow removal of any packages. At the same time lock packages there cannot simply be marked fixed, as error reporting would then report them as platform packages, so this still marks them as locked packages at the same time.

File

vendor/composer/composer/src/Composer/DependencyResolver/Request.php, line 111

Class

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

Namespace

Composer\DependencyResolver

Code

public function fixLockedPackage(BasePackage $package) : void {
    $this->fixedPackages[spl_object_hash($package)] = $package;
    $this->fixedLockedPackages[spl_object_hash($package)] = $package;
}

API Navigation

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