diff --git a/.changes/unreleased/Fixed-20241003-072041.yaml b/.changes/unreleased/Fixed-20241003-072041.yaml new file mode 100644 index 0000000..24baf85 --- /dev/null +++ b/.changes/unreleased/Fixed-20241003-072041.yaml @@ -0,0 +1,3 @@ +kind: Fixed +body: '[GH-13](https://github.com/llaville/box-manifest/issues/13) : v4.0.0-rc.1 does not support correctly the BOX dump-autoload setting' +time: 2024-10-03T07:20:41.299069779Z diff --git a/box.json b/box.json index dc3c425..bccbd32 100644 --- a/box.json +++ b/box.json @@ -26,5 +26,6 @@ "files-bin": [ "vendor/humbug/php-scoper/vendor-hotfix/.gitkeep" ], - "stub": "stub.php" + "stub": "stub.php", + "dump-autoload": true } diff --git a/box.json.dist b/box.json.dist index aeabfe0..863ae14 100644 --- a/box.json.dist +++ b/box.json.dist @@ -31,7 +31,7 @@ ".box.manifests.bin" ], "stub": "stub.php", - "dump-autoload": false, + "dump-autoload": true, "map": [ { "console-table.txt": ".box.manifests/console-table.txt" diff --git a/src/Pipeline/ConfigureStage.php b/src/Pipeline/ConfigureStage.php index 606ce55..69c9c36 100644 --- a/src/Pipeline/ConfigureStage.php +++ b/src/Pipeline/ConfigureStage.php @@ -48,7 +48,7 @@ public function __invoke(array $payload): array // @link Due to issue https://github.com/box-project/box/issues/580 // @see https://github.com/box-project/box/issues/580#issuecomment-2326577684 - $configs['dump-autoload'] = false; + $configs['dump-autoload'] ??= false; // should be applied only if not previously defined if (!isset($configs['files-bin'])) { $configs['files-bin'] = [];