Skip to content

Commit

Permalink
[FEATURE ember-application-engines] Expose Ember.EngineInstance and E…
Browse files Browse the repository at this point in the history
…mber.ApplicationInstance.

Expose Ember.EngineInstance and Ember.ApplicationInstance for
easy overriding. Need to reanalyze whether to continue exposing
them after feature flag is removed.
  • Loading branch information
dgeb committed Dec 8, 2015
1 parent cb4a674 commit 18b0a61
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/ember-application/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,21 @@ 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;
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);

0 comments on commit 18b0a61

Please sign in to comment.