Loads the configuration for this project and its addons. @public @method config @param {String} env Environment name @return {Object} Merged configuration object
(env)
| 230 | @return {Object} Merged configuration object |
| 231 | */ |
| 232 | config(env) { |
| 233 | let _env = env === undefined ? process.env.EMBER_ENV : env; |
| 234 | let key = `${this.configPath()}|${_env}`; |
| 235 | let config = this.configCache.get(key); |
| 236 | if (config === undefined) { |
| 237 | config = this.configWithoutCache(_env); |
| 238 | this.configCache.set(key, config); |
| 239 | } |
| 240 | return cloneDeep(config); |
| 241 | } |
| 242 | |
| 243 | /** |
| 244 | * @private |
no test coverage detected