koinApplication

fun <T : Any> koinApplication(appDeclaration: KoinAppDeclaration? = null): KoinApplication

Create KoinApplication with modules discovered from @KoinApplication annotated class. Similar to startKoin but doesn't register globally.

Usage:

koinApplication<MyApp>() {
printLogger()
}