${setting} in the environments interceptor

If you want/need to use ${setting} in the environments interceptor, you can add it with 2 lines of code. This allows you to use any settings from coldbox.xml or that have been previously declared in environments.xml

See below:

in EnvironmentControl.cfc method=parseAndSet

add the following in the vars

var oUtilities = getPlugin(“Utilities”);

add the following immediately after JSON decoding (approx line 126)

/* Replace ${setting} */
thisValue = oUtilities.placeHolderReplacer(trim(thisValue),configSettings);

Thanks!

Christine