palasthotel / wind

dependency injection container in pure swift
9 stars 2 forks source link

Add support to resolve lists of dependencies #6

Closed mkernel closed 7 years ago

mkernel commented 7 years ago

Currently, dependencies can only be met by single components. That means, one can't build an interface and have multiple implementations of it in the container.

mkernel commented 7 years ago

We should formalize on this one: if possible dependencies should tell wether "multi-resolution" is allowed or not. As this feature only works on indirect resolutions, we could provide base protocols for these two cases.

mkernel commented 7 years ago

Solved it albeit not by providing base protocols. Instead Wind is built to always fetch multiple components.