What's the difference between single and singleby ...
# koin
d
It's the bound type.
single
binds to the type you give it (
HelloRepository
in the example),
singleBy
creates the 2nd type (
HelloServiceImpl
), but binds it as the 1st type (
HelloService
).
The "by" can be used as a hint: "Provide a
HelloService
by using `HelloServiceImpl`"
a
singeBy is a way to declare without any function. It uses reflection here
d
So does the version of
single
in this example
h
thanks @diesieben07 @arnaud.giuliani