How to inject a service in discourse?

You might want to look at how other services are written. I don’t think the x extends y syntax works yet on the ember version discourse uses.

Also you might want to look at the appEvents api to communicate between two components.