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
ComposerCode
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);
}