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

Breadcrumb

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

function Installer::setIgnorePlatformRequirements

set ignore Platform Package requirements

If this is set to true, all platform requirements are ignored If this is set to false, no platform requirements are ignored If this is set to string[], those packages will be ignored

Parameters

bool|string[] $ignorePlatformReqs:

Return value

Installer

Deprecated

use setPlatformRequirementFilter instead

File

vendor/composer/composer/src/Composer/Installer.php, line 1384

Class

Installer
@author Jordi Boggiano <j.boggiano@seld.be> @author Beau Simensen <beau@dflydev.com> @author Konstantin Kudryashov <ever.zet@gmail.com> @author Nils Adermann <naderman@naderman.de>

Namespace

Composer

Code

public function setIgnorePlatformRequirements($ignorePlatformReqs) : self {
    trigger_error('Installer::setIgnorePlatformRequirements is deprecated since Composer 2.2, use setPlatformRequirementFilter instead.', E_USER_DEPRECATED);
    return $this->setPlatformRequirementFilter(PlatformRequirementFilterFactory::fromBoolOrList($ignorePlatformReqs));
}

API Navigation

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