Skip to content

Commit

Permalink
Fix: using Composer to parse .json array was attempting to load unpri…
Browse files Browse the repository at this point in the history
…vileged 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%
```
  • Loading branch information
BrianHenryIE committed Jul 7, 2022
1 parent e33c767 commit 303474a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Composer/ComposerPackage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 303474a

Please sign in to comment.