feat:允许模块更新 composer.json 的 config

This commit is contained in:
妙码生花 2023-12-24 00:57:41 +08:00
parent 3afca5351d
commit 8437fe4a9d

View File

@ -701,6 +701,13 @@ class Manage
$npm = false; $npm = false;
$composer = false; $composer = false;
$nuxtNpm = false; $nuxtNpm = false;
// composer config 更新
$composerConfig = Server::getConfig($this->modulesDir, 'composerConfig');
if ($composerConfig) {
$serverDep->setComposerConfig($composerConfig);
}
foreach ($depends as $key => $item) { foreach ($depends as $key => $item) {
if (!$item) { if (!$item) {
continue; continue;