declare ReactionListener in Koin

This commit is contained in:
flecomte committed 2025-04-14 23:40:15 +02:00
1 parent 37eaf7c8e5
commit 83a92ab391
2 files changed
+3 -1

No files matched your search

@@ -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>()
@@ -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)
}