Do I have to use interfaces for my services? I str...
# kodein
p
Do I have to use interfaces for my services? I strongly disagree with this line from the Kodein docs:
In DI, each business unit will have dependencies. Those dependencies should (nearly almost) always be interfaces.
So I am wondering if Kodein is a good choice for me if I don't have silly interfaces for every single dependency.
s
You can bind any type. They don’t have to be an interface.
d
You can use "from"
a
The documentation says should not must, so you can happily ignore this tip if you want to and use concrete classes instead of interfaces