This function calls every function from the configuration object, validates it and stores the result in the new config object.
the configuration object where each config value is a function without parameters
getConfig for the usage example
This function calls every function from the configuration object, validates it and stores the result in the new config object.