You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 11, 2017. It is now read-only.
I'm trying to use application.inject() in an initializer in order to make an object available to my StateManager and I was wondering what the correct name for the factory of StateManagers is in order to do this?
For example, here I register my PassManager object and inject it into my application's controllers:
This works correctly. But now I want to also inject this same PassManager object into the StateManager subclasses I'm using in my application. I tried:
without any luck. Is it possible to inject into StateManager in this way?
(Note: It happens that the object I'm trying to inject is also a StateManager subclass, but that doesn't seem to me like it would be a problem other than needing to scope this inject statement to not be circular, for example by changing the first argument to: 'stateManager:MyOtherSMSubclass' rather than simply 'stateManager' or whatever the correct factory name is.)
Hi,
I'm trying to use application.inject() in an initializer in order to make an object available to my StateManager and I was wondering what the correct name for the factory of StateManagers is in order to do this?
For example, here I register my PassManager object and inject it into my application's controllers:
This works correctly. But now I want to also inject this same PassManager object into the StateManager subclasses I'm using in my application. I tried:
without any luck. Is it possible to inject into StateManager in this way?
(Note: It happens that the object I'm trying to inject is also a StateManager subclass, but that doesn't seem to me like it would be a problem other than needing to scope this inject statement to not be circular, for example by changing the first argument to: 'stateManager:MyOtherSMSubclass' rather than simply 'stateManager' or whatever the correct factory name is.)