In my application, I have used initializers to inject services to routes, controllers and components. I am trying to use ember engine now. I have shared my application services to my engine, but I need to inject the shared application services to the engine's routes, controllers and components using an initializer.
In my application, I can generate an initializer and inject the services. How to do that in my engine?
It may be substantially easier to require it where needed instead of injecting it everywhere.
An example from the Ember Docs:
This would make the shopping cart service available here. You can do the same thing in routes and controllers and that service is a singleton so it will only be instantiated once and shares state between every location it is accessed.
This avoids needing to mess with creating an engine specific initializer entirely.