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

Breadcrumb

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

function Request::fixPackage

Mark a package as currently present and having to remain installed

This is used for platform packages which cannot be modified by Composer. A rule enforcing their installation is generated for dependency resolution. Partial updates with dependencies cannot in any way modify these packages.

File

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

Class

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

Namespace

Composer\DependencyResolver

Code

public function fixPackage(BasePackage $package) : void {
    $this->fixedPackages[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