From 1ce15075c9941ab383e8fa09f44f51ee5b2f0156 Mon Sep 17 00:00:00 2001 From: BnitoBzh Date: Tue, 11 Jul 2017 13:49:03 +0200 Subject: [PATCH] fix factoryFor error Fix of the error below : You attempted to access "ifa" on a factory manager created by container#factoryFor. "ifa" is not a member of a factory manager." --- addon/initializers/asset-map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/initializers/asset-map.js b/addon/initializers/asset-map.js index e46dee4..d69d758 100644 --- a/addon/initializers/asset-map.js +++ b/addon/initializers/asset-map.js @@ -7,7 +7,7 @@ export function initialize(app) { const container = app.__container__; let config; if(container.factoryFor) { - config = container.factoryFor('config:environment'); + config = container.factoryFor('config:environment').class; } else { config = container.lookupFactory('config:environment'); }