refactor: move CommandHandler to libs

This commit is contained in:
2025-04-16 00:46:13 +02:00
parent 1f995b6ed9
commit f03265292a
7 changed files with 189 additions and 93 deletions
@@ -1,8 +1,5 @@
package eventDemo.configuration.injection
import eventDemo.business.command.command.GameCommand
import eventDemo.libs.command.CommandRunnerController
import eventDemo.libs.command.CommandStreamChannel
import eventDemo.libs.event.VersionBuilder
import eventDemo.libs.event.VersionBuilderLocal
import org.koin.core.module.Module
@@ -10,8 +7,5 @@ import org.koin.core.module.dsl.singleOf
import org.koin.dsl.bind
fun Module.configureDILibs() {
single {
CommandStreamChannel<GameCommand>(CommandRunnerController())
}
singleOf(::VersionBuilderLocal) bind VersionBuilder::class
}