Kevin Janvier Chinabalire
10/17/2019, 3:58 PMApplication class
bind() from provider { MyInterface }
and when i use it inside my reposition NextRepository(prival val view:MyInterface) .
I got the below error :
org.kodein.di.Kodein$NotFoundException: No binding found for bind<MyInterface>() with ?<MyMainClass>().? { ? }
Registered in this Kodein container:
Inside my Main Class i have the following :
val view:MyInterface by instance()
What am i doing wrong ?Giovani Guerra
10/18/2019, 1:08 PMbind<MyInterface>() with provider { MyInterfaceImpl() }
MyInterfaceImpl is some concrete class that implements MyInterface.