> ## Content Index
> Fetch the complete content index at: https://lucas-schiavini.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Daily Dispatch #6 - Dependency Injection KodeIN-DI
- URL: https://lucas-schiavini.com/daily-dispatch-5-dependency-injection-kodein-di/
- Published: 2022-02-11T01:05:55.000Z
- Updated: 2022-08-16T14:40:19.000Z
- Author: Lucas Schiavini
- Tags: dailydispatch, #Import 2026-08-11 14:49

So I went on to learn more about dependency injection by trying to change an example project that used Koin to use KodeIN-DI now.

Some problems were found, where I didn’t know what the equivalent to “get()”(from koin) to Kodein.

Eventually I found out it was “instance()”. And the way to declare things seemed simple enough.

Let’s see some examples where I’ll put the koin and kodein code side by side.

single { get<AppDatabase>().employeeDao() } //---> koin

bindProvider {
   instance<AppDatabase>().employeeDao() //----> kodein
}

It isn’t much, but I had loads of errors building the project that are unrelated to di. Maybe tomorrow I’ll have more luck.