erlang/otp — pull request #198 by josevalim (2014-01-16 21:08:38+00:00)
Title: Add application_controller:config_change_data/1

Currently the application_controller loads configuration files on
bootstrap by directly checking the values given to the -config flag.
The configuration data is kept by the application controller and
merge into the application environment on load. There is no mechanism
to change such data before the application loads.

This commit adds a new application_controller:config_change_data/1
function that allows the configuration data to be changed, useful
when they need to be read from other sources besides the ones given
to -config at boot. The new function only changes the configuration
data, applications that are already loaded are not affected by this
function.