How to overload the resolver via an addon?

Hi there,

I can import my custom resolver located in my addon by importing it in myproject/app/app.js and replace the Resolver here:

import CustomResolver from 'my-addon/resolver';
...
var App = Ember.Application.extend({
   modulePrefix: config.modulePrefix,
   podModulePrefix: config.podModulePrefix,
   Resolver: CustomResolver
});

But it needs to be done by hand after installing the addon.

Is it a possible way to update the resolver with an addon without touching the app/app.js file ? I’d like to overload the default resolver via initialize or anything that can be implemented in an addon.

Any idea ?

Thanks !

anyone ? :relaxed:

I’m creating an addon which will be used as a new base for futures projects.

Is it possible to use ember-cli addon to extend or overwrite the resolver ?

Did you find an elegant way of accomplishing this?

Not yet. I don’t have the time to investigate further yet but I’m still very interested by the solution.

It seems we have to wait for Engines to be released. Would be interested to see your solution as it is now :]