From a2f93d4eddca0ab73822a05ec42a27b056300fb8 Mon Sep 17 00:00:00 2001 From: Fabrice Lecomte Date: Fri, 14 Mar 2025 22:53:52 +0100 Subject: [PATCH] rename GameCommandRunner to GameCommandActionRunner --- .../{GameCommandRunner.kt => GameCommandActionRunner.kt} | 2 +- src/main/kotlin/eventDemo/app/command/GameCommandHandler.kt | 2 +- src/main/kotlin/eventDemo/configuration/ConfigureDI.kt | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename src/main/kotlin/eventDemo/app/command/{GameCommandRunner.kt => GameCommandActionRunner.kt} (97%) 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) }