Skip to content

Commit bab96a8

Browse files
committed
allowing for config overrides from the edition composer.json
1 parent 132cb86 commit bab96a8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/PatternLab/InstallerUtil.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,13 @@ protected static function runTasks($installerInfo) {
651651
Config::updateConfigOption("styleguideKit",$name);
652652
}
653653

654+
// override any configs that have been set-up
655+
if (!empty($installerInfo["configOverrides"])) {
656+
foreach ($installerInfo["configOverrides"] as $option => $value) {
657+
Config::updateConfigOption($option,$value, true); // forces the update
658+
}
659+
}
660+
654661
}
655662

656663
}

0 commit comments

Comments
 (0)