``` fun myScope(): Pair<Context, HashMap<Any...
# kodein
a
Copy code
fun myScope(): Pair<Context, HashMap<Any, Any>> { /*...*/ }

val kodein = Kodein {
    bind<Logger>() with autoScopedSingleton(::myScope) { LogManager.getNamedLogger(it.name) } // `it` is the context.
}
then
Copy code
val logger: Logger = kodein.instance()
how does the
kodein.instance()
know the scope to use?