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

Breadcrumb

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

function PluginManager::__construct

Parameters

bool|'local'|'global' $disablePlugins Whether plugins should not be loaded, can be set to local or global to only disable local/global plugins:

File

vendor/composer/composer/src/Composer/Plugin/PluginManager.php, line 80

Class

PluginManager
Plugin manager

Namespace

Composer\Plugin

Code

public function __construct(IOInterface $io, Composer $composer, ?PartialComposer $globalComposer = null, $disablePlugins = false) {
    $this->io = $io;
    $this->composer = $composer;
    $this->globalComposer = $globalComposer;
    $this->versionParser = new VersionParser();
    $this->disablePlugins = $disablePlugins;
    $this->allowPluginRules = $this->parseAllowedPlugins($composer->getConfig()
        ->get('allow-plugins'), $composer->getLocker());
    $this->allowGlobalPluginRules = $this->parseAllowedPlugins($globalComposer !== null ? $globalComposer->getConfig()
        ->get('allow-plugins') : false);
}
RSS feed
Powered by Drupal