From 303474af329df3edb66543986d903cfbe521139e Mon Sep 17 00:00:00 2001 From: Brian Henry Date: Wed, 6 Jul 2022 23:40:05 -0700 Subject: [PATCH] Fix: using Composer to parse .json array was attempting to load unprivileged plugins ``` composer/installers contains a Composer plugin which is blocked by your allow-plugins config. You may add it to the list if you consider it safe. You can run "composer config --no-plugins allow-plugins.composer/installers [true|false]" to enable it (true) or disable it explicitly and suppress this exception (false) See https://getcomposer.org/allow-plugins% ``` --- src/Composer/ComposerPackage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/ComposerPackage.php b/src/Composer/ComposerPackage.php index 14d1bc74..76cbd9fb 100644 --- a/src/Composer/ComposerPackage.php +++ b/src/Composer/ComposerPackage.php @@ -83,7 +83,7 @@ public static function fromComposerJsonArray($jsonArray, array $overrideAutoload { $factory = new Factory(); $io = new NullIO(); - $composer = $factory->createComposer($io, $jsonArray); + $composer = $factory->createComposer($io, $jsonArray, true); return new ComposerPackage($composer, $overrideAutoload); }