Config.Provider.load
You're seeing just the callback
load
, go back to Config.Provider module for more information.
Specs
Loads configuration (typically during system boot).
It receives the current config
and the state
returned by
init/1
. Then, you typically read the extra configuration
from an external source and merge it into the received config
.
Merging should be done with Config.Reader.merge/2
, as it
performs deep merge. It should return the updated config.
Note that load/2
is typically invoked very early in the
boot process, therefore if you need to use an application
in the provider, it is your responsibility to start it.