Wraps Appconf's getters in a check to see whether the equivalent environment
variable has been set, and if so, returns that instead. For implementing
sensiting settings in apps that you want to inject via environment variables
and use the built-in system as a transparent fallback.
The naming of the environment variables are the concatenated names of the
app, section, and setting. For example:
Note that, unlike Appconf::get(), this class returns individual values only.
For example, you can't call Envconf::get ('myapp', 'Section') to retrieve
an array of values. This corresponds to Elefant's use of INI file sections.
Properties
No properties.
Methods
public static__callStatic($app, $args)
Get an individual configuration value for a given app setting. Use the app
name as the method name, using the form:
Wraps
Appconf
's getters in a check to see whether the equivalent environment variable has been set, and if so, returns that instead. For implementing sensiting settings in apps that you want to inject via environment variables and use the built-in system as a transparent fallback.The naming of the environment variables are the concatenated names of the app, section, and setting. For example:
Note that, unlike
Appconf::get()
, this class returns individual values only. For example, you can't callEnvconf::get ('myapp', 'Section')
to retrieve an array of values. This corresponds to Elefant's use of INI file sections.