File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -283,8 +283,9 @@ public static function setExposedOption($optionName = "") {
283
283
* Update a single config option based on a change in composer.json
284
284
* @param {String} the name of the option to be changed
285
285
* @param {String} the new value of the option to be changed
286
+ * @param {Boolean} whether to force the update of the option
286
287
*/
287
- public static function updateConfigOption ($ optionName ,$ optionValue ) {
288
+ public static function updateConfigOption ($ optionName ,$ optionValue, $ force = false ) {
288
289
289
290
if (is_string ($ optionValue ) && strpos ($ optionValue ,"<prompt> " ) !== false ) {
290
291
@@ -296,7 +297,7 @@ public static function updateConfigOption($optionName,$optionValue) {
296
297
self ::writeUpdateConfigOption ($ optionName ,$ input );
297
298
Console::writeTag ("ok " ,"config option " .$ optionName ." updated... " , false , true );
298
299
299
- } else if (!isset (self ::$ options [$ optionName ]) || (self ::$ options ["overrideConfig " ] == "a " )) {
300
+ } else if (!isset (self ::$ options [$ optionName ]) || (self ::$ options ["overrideConfig " ] == "a " ) || $ force ) {
300
301
301
302
// if the option isn't set or the config is always to override update the config
302
303
self ::writeUpdateConfigOption ($ optionName ,$ optionValue );
You can’t perform that action at this time.
0 commit comments