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

Breadcrumb

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

function Factory::createGlobal

Parameters

bool $disablePlugins Whether plugins should not be loaded:

bool $disableScripts Whether scripts should not be executed:

2 calls to Factory::createGlobal()
Application::getPluginCommands in vendor/composer/composer/src/Composer/Console/Application.php
BaseCommand::initialize in vendor/composer/composer/src/Composer/Command/BaseCommand.php
@inheritDoc

File

vendor/composer/composer/src/Composer/Factory.php, line 462

Class

Factory
Creates a configured instance of composer.

Namespace

Composer

Code

public static function createGlobal(IOInterface $io, bool $disablePlugins = false, bool $disableScripts = false) : ?Composer {
    $factory = new static();
    return $factory->createGlobalComposer($io, static::createConfig($io), $disablePlugins, $disableScripts, true);
}

API Navigation

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