mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-11-16 21:33:49 +00:00
18 lines
478 B
Kotlin
18 lines
478 B
Kotlin
package group_name.module_name.common
|
|
|
|
import dev.inmo.micro_utils.startup.plugin.StartPlugin
|
|
import kotlinx.serialization.json.JsonObject
|
|
import org.koin.core.Koin
|
|
import org.koin.core.module.Module
|
|
|
|
object CommonJSPlugin : StartPlugin {
|
|
override fun Module.setupDI(config: JsonObject) {
|
|
with (CommonPlugin) { setupDI(config) }
|
|
}
|
|
|
|
override suspend fun startPlugin(koin: Koin) {
|
|
super.startPlugin(koin)
|
|
CommonPlugin.startPlugin(koin)
|
|
}
|
|
}
|