40 lines
886 B
Swift
Executable File
40 lines
886 B
Swift
Executable File
// Copyright © 2025 VOID Software SA. All rights reserved.
|
|
|
|
import Foundation
|
|
import Swinject
|
|
|
|
final class ManagerAssembly: Assembly {
|
|
|
|
func assemble(container: Container) {
|
|
|
|
|
|
container.register(AppStateManager.self) { _ in
|
|
return AppStateManager()
|
|
}
|
|
.inObjectScope(.container)
|
|
|
|
container.register(GRDBDatabaseManager.self) { _ in
|
|
return GRDBDatabaseManager()
|
|
}
|
|
.inObjectScope(.container)
|
|
|
|
|
|
container.register(APIClient.self) { _ in
|
|
return APIClient()
|
|
}
|
|
.inObjectScope(.container)
|
|
|
|
container.register(EventsManager.self) { _ in
|
|
return EventsManager()
|
|
}
|
|
|
|
|
|
container.register(MedMapAPI.self) { _ in
|
|
return MedMapAPI()
|
|
}
|
|
.inObjectScope(.container)
|
|
|
|
|
|
}
|
|
}
|