Closed ytetsuro closed 1 week ago
I think the best way to do this would be to use a factory.
@dcavanagh
Thanks for taking the time to reply. I think the only current solution is probably to create a factory. Does inversifyJS want to change to allow multiple target names in multiInjection? Is it worth the PR to make that change?
@ytetsuro we are pretty swamped trying to revive this project. Are you interested in helping out?
Could you describe your proposal some more and we can have a discussion about it.
As said, a factory is probably the way to go. Trying to multiInject a service with a single binding should return a single Ninja.
I want a Ninja per Weapon in every game board class.
Expected Behavior
I want an instance that is equivalent to the following code.
Current Behavior
Can't do this currently?