From 18b0a61d8c792f16afe5c15571978eff73ed3d26 Mon Sep 17 00:00:00 2001 From: Dan Gebhardt Date: Sun, 6 Dec 2015 17:39:17 -0500 Subject: [PATCH] [FEATURE ember-application-engines] Expose Ember.EngineInstance and Ember.ApplicationInstance. Expose Ember.EngineInstance and Ember.ApplicationInstance for easy overriding. Need to reanalyze whether to continue exposing them after feature flag is removed. --- packages/ember-application/lib/index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/ember-application/lib/index.js b/packages/ember-application/lib/index.js index 00565174cc6..f76ad18b58e 100644 --- a/packages/ember-application/lib/index.js +++ b/packages/ember-application/lib/index.js @@ -12,7 +12,9 @@ import { Resolver } from 'ember-application/system/resolver'; import Application from 'ember-application/system/application'; +import ApplicationInstance from 'ember-application/system/application-instance'; import Engine from 'ember-application/system/engine'; +import EngineInstance from 'ember-application/system/engine-instance'; Ember.Application = Application; Ember.Resolver = Resolver; @@ -20,6 +22,11 @@ Ember.DefaultResolver = DefaultResolver; if (isEnabled('ember-application-engines')) { Ember.Engine = Engine; + + // Expose `EngineInstance` and `ApplicationInstance` for easy overriding. + // Reanalyze whether to continue exposing these after feature flag is removed. + Ember.EngineInstance = EngineInstance; + Ember.ApplicationInstance = ApplicationInstance; } runLoadHooks('Ember.Application', Application);