Split configs

This commit is contained in:
2025-04-14 23:39:48 +02:00
parent 769d104040
commit 4adfc6467c
43 changed files with 254 additions and 191 deletions
@@ -0,0 +1,17 @@
package eventDemo.configuration.injection
import eventDemo.business.command.GameCommandActionRunner
import eventDemo.business.command.GameCommandHandler
import eventDemo.business.event.GameEventHandler
import eventDemo.business.event.eventListener.PlayerNotificationEventListener
import org.koin.core.module.Module
import org.koin.core.module.dsl.singleOf
fun Module.configureDIBusiness() {
single {
GameCommandHandler(get(), get(), get(), get())
}
singleOf(::GameEventHandler)
singleOf(::GameCommandActionRunner)
singleOf(::PlayerNotificationEventListener)
}