refactor: move CommandHandler to libs
This commit is contained in:
@@ -10,7 +10,7 @@ import org.koin.core.module.dsl.singleOf
|
||||
|
||||
fun Module.configureDIBusiness() {
|
||||
single {
|
||||
GameCommandHandler(get(), get(), get())
|
||||
GameCommandHandler(get(), get(), get(), get())
|
||||
}
|
||||
singleOf(::GameEventHandler)
|
||||
singleOf(::GameCommandActionRunner)
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user