getSystemSetting
( key, defaultValue )
key
in properties first, env second. Returns the defaultValue
if neither exist.getSystemProperty
( key, defaultValue )
key
. Returns the defaultValue
if it does not exist.getEnv
( key, defaultValue )
key
. Returns the defaultValue
if it does not exist.config/ColdBox.cfc
or a ModuleConfig.cfc
config/ColdBox.cfc
or a ModuleConfig.cfc
or a config/WireBox.cfc
you can use the three system settings functions directly! No additional work required.Application.cfc
Application.cfc
, create an instance of coldbox.system.core.util.Util
and access them off of that component. This is required when adding a datasource from environment variables.