diff --git a/src/main/kotlin/eventDemo/app/command/GameCommandRunner.kt b/src/main/kotlin/eventDemo/app/command/GameCommandActionRunner.kt similarity index 97% rename from src/main/kotlin/eventDemo/app/command/GameCommandRunner.kt rename to src/main/kotlin/eventDemo/app/command/GameCommandActionRunner.kt index dfaa10f..b6a4fa3 100644 --- a/src/main/kotlin/eventDemo/app/command/GameCommandRunner.kt +++ b/src/main/kotlin/eventDemo/app/command/GameCommandActionRunner.kt @@ -10,7 +10,7 @@ import eventDemo.app.event.projection.GameStateRepository import eventDemo.app.notification.Notification import kotlinx.coroutines.channels.SendChannel -class GameCommandRunner( +class GameCommandActionRunner( private val eventHandler: GameEventHandler, private val gameStateRepository: GameStateRepository, ) { diff --git a/src/main/kotlin/eventDemo/app/command/GameCommandHandler.kt b/src/main/kotlin/eventDemo/app/command/GameCommandHandler.kt index 222596e..195322b 100644 --- a/src/main/kotlin/eventDemo/app/command/GameCommandHandler.kt +++ b/src/main/kotlin/eventDemo/app/command/GameCommandHandler.kt @@ -16,7 +16,7 @@ import kotlinx.coroutines.channels.SendChannel */ class GameCommandHandler( private val commandStreamChannel: CommandStreamChannelBuilder, - private val runner: GameCommandRunner, + private val runner: GameCommandActionRunner, ) { private val logger = KotlinLogging.logger { } diff --git a/src/main/kotlin/eventDemo/configuration/ConfigureDI.kt b/src/main/kotlin/eventDemo/configuration/ConfigureDI.kt index e0d9030..e1eb53f 100644 --- a/src/main/kotlin/eventDemo/configuration/ConfigureDI.kt +++ b/src/main/kotlin/eventDemo/configuration/ConfigureDI.kt @@ -1,7 +1,7 @@ package eventDemo.configuration +import eventDemo.app.command.GameCommandActionRunner import eventDemo.app.command.GameCommandHandler -import eventDemo.app.command.GameCommandRunner import eventDemo.app.command.command.GameCommand import eventDemo.app.event.GameEventBus import eventDemo.app.event.GameEventHandler @@ -46,7 +46,7 @@ val appKoinModule = singleOf(::VersionBuilderLocal) bind VersionBuilder::class singleOf(::GameEventHandler) - singleOf(::GameCommandRunner) + singleOf(::GameCommandActionRunner) singleOf(::GameCommandHandler) singleOf(::PlayerNotificationEventListener) }