diff --git a/src/Composer/ComposerPackage.php b/src/Composer/ComposerPackage.php index 14d1bc74..225d1296 100644 --- a/src/Composer/ComposerPackage.php +++ b/src/Composer/ComposerPackage.php @@ -69,7 +69,7 @@ public static function fromFile(string $absolutePath, array $overrideAutoload = $absolutePath = rtrim($absolutePath, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . 'composer.json'; } - $composer = Factory::create(new NullIO(), $absolutePath); + $composer = Factory::create(new NullIO(), $absolutePath, true); return new ComposerPackage($composer, $overrideAutoload); } @@ -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); } diff --git a/src/Composer/ProjectComposerPackage.php b/src/Composer/ProjectComposerPackage.php index 0cad859f..d432f167 100644 --- a/src/Composer/ProjectComposerPackage.php +++ b/src/Composer/ProjectComposerPackage.php @@ -26,7 +26,7 @@ public function __construct(string $absolutePath, array $overrideAutoload = null } unset($absolutePath); - $composer = Factory::create(new NullIO(), $absolutePathFile); + $composer = Factory::create(new NullIO(), $absolutePathFile, true); parent::__construct($composer, $overrideAutoload);