declare ReactionListener in Koin

This commit is contained in:
2025-04-05 02:55:52 +02:00
parent 37eaf7c8e5
commit 83a92ab391
2 changed files with 3 additions and 1 deletions

View File

@@ -6,7 +6,7 @@ import eventDemo.business.event.projection.projectionListener.ReactionListener
import org.koin.core.Koin
fun Koin.configureGameListener() {
ReactionListener(get())
get<ReactionListener>()
.subscribeToBus(get())
get<GameStateRepositoryInMemory>()

View File

@@ -4,6 +4,7 @@ import eventDemo.business.command.GameCommandActionRunner
import eventDemo.business.command.GameCommandHandler
import eventDemo.business.event.GameEventHandler
import eventDemo.business.event.projection.projectionListener.PlayerNotificationListener
import eventDemo.business.event.projection.projectionListener.ReactionListener
import org.koin.core.module.Module
import org.koin.core.module.dsl.singleOf
@@ -14,4 +15,5 @@ fun Module.configureDIBusiness() {
singleOf(::GameEventHandler)
singleOf(::GameCommandActionRunner)
singleOf(::PlayerNotificationListener)
singleOf(::ReactionListener)
}