var set = Ember.set;

Ember.onLoad('application', function(app) {
  app.registerInjection(function(app, stateManager, property) {
    if (property === 'Store') {
      set(stateManager, 'store', app[property].create());
    }
  });
});

var set = Ember.set;

Ember.onLoad('application', function(app) {
  app.registerInjection({
    name: "store",
    before: "controllers",

    injection: function(app, stateManager, property) {
      if (property === 'Store') {
        set(stateManager, 'store', app[property].create());
      }
    }
  });
});

Update to new injection syntax
Update to new injection syntax