Using Ember Services in Discourse plugins

I think the approach you are taking is correct in that case. I can suggest another way to do a singleton but maybe we should try and get this working the ember way?

Actually I looked and we do have a few ember services already! They’re just not used via Ember.inject. The problem is probably that the resolver we use doesn’t resolve them.

I suspect if you add a resolveService method to the custom resolver it might work!

If not, maybe add some debugging to see what Ember.inject is looking up?