Simplify the external API of the config system. There is no reason to force consumers to use constants directly.
How?
Instead of asking consumers to use the DOMAIN_LOCAL, DOMAIN_REMOTE and DOMAIN_LOCAL_OVERRIDE constants, implement corresponding set(), set_remote() and set_override() methods.
What?
Simplify the external API of the config system. There is no reason to force consumers to use constants directly.
How?
Instead of asking consumers to use the
DOMAIN_LOCAL
,DOMAIN_REMOTE
andDOMAIN_LOCAL_OVERRIDE
constants, implement correspondingset()
,set_remote()
andset_override()
methods.