All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.org.koin.ext.InjectProperty.kt Maven / Gradle / Ivy

There is a newer version: 4.0.0
Show newest version
package org.koin.ext

import org.koin.core.Koin
import org.koin.core.scope.Scope
import org.koin.mp.KoinPlatformTools
import kotlin.reflect.KMutableProperty0

inline fun  KMutableProperty0.inject() {
    set(KoinPlatformTools.defaultContext().get().get())
}

inline fun  KMutableProperty0.inject(koin: Koin) {
    set(koin.get())
}

inline fun  KMutableProperty0.inject(scope: Scope) {
    set(scope.get())
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy