declare ReactionListener in Koin
This commit is contained in:
@@ -6,7 +6,7 @@ import eventDemo.business.event.projection.projectionListener.ReactionListener
|
|||||||
import org.koin.core.Koin
|
import org.koin.core.Koin
|
||||||
|
|
||||||
fun Koin.configureGameListener() {
|
fun Koin.configureGameListener() {
|
||||||
ReactionListener(get())
|
get<ReactionListener>()
|
||||||
.subscribeToBus(get())
|
.subscribeToBus(get())
|
||||||
|
|
||||||
get<GameStateRepositoryInMemory>()
|
get<GameStateRepositoryInMemory>()
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import eventDemo.business.command.GameCommandActionRunner
|
|||||||
import eventDemo.business.command.GameCommandHandler
|
import eventDemo.business.command.GameCommandHandler
|
||||||
import eventDemo.business.event.GameEventHandler
|
import eventDemo.business.event.GameEventHandler
|
||||||
import eventDemo.business.event.projection.projectionListener.PlayerNotificationListener
|
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.Module
|
||||||
import org.koin.core.module.dsl.singleOf
|
import org.koin.core.module.dsl.singleOf
|
||||||
|
|
||||||
@@ -14,4 +15,5 @@ fun Module.configureDIBusiness() {
|
|||||||
singleOf(::GameEventHandler)
|
singleOf(::GameEventHandler)
|
||||||
singleOf(::GameCommandActionRunner)
|
singleOf(::GameCommandActionRunner)
|
||||||
singleOf(::PlayerNotificationListener)
|
singleOf(::PlayerNotificationListener)
|
||||||
|
singleOf(::ReactionListener)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user