In the current state of Kodein, you can inject the...
# kodein
s
In the current state of Kodein, you can inject the kodein object into class bound into a module. Consider the following class :
Copy code
class APIImpl(val kodein: Kodein) { /* whatever */ }
You can bind it like this:
Copy code
val kodein = Kodein {
    bind<API>() with singleton { APIImpl(this) }
}