-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppLayerAssembler.swift
More file actions
46 lines (44 loc) · 1.47 KB
/
Copy pathAppLayerAssembler.swift
File metadata and controls
46 lines (44 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//
// AppLayerAssembler.swift
// DevLog
//
// Created by opfic on 3/19/26.
//
import DevLogCore
import DevLogData
import DevLogDomain
final class AppLayerAssembler: Assembler {
func assemble(_ container: any DIContainer) {
container.register(WidgetSyncEventBus.self) {
WidgetSyncEventBusImpl()
}
container.register(WidgetSyncEventHandler.self) {
WidgetSyncEventHandler(
eventBus: container.resolve(WidgetSyncEventBus.self),
repository: container.resolve(TodoRepository.self),
snapshotUpdater: container.resolve(WidgetSnapshotUpdater.self)
)
}
container.register(WidgetSessionSyncHandler.self) {
WidgetSessionSyncHandler(
authService: container.resolve(AuthService.self),
widgetSyncEventBus: container.resolve(WidgetSyncEventBus.self)
)
}
container.register(FCMTokenSyncHandler.self) {
FCMTokenSyncHandler(
userService: container.resolve(UserService.self)
)
}
container.register(UserTimeZoneSyncHandler.self) {
UserTimeZoneSyncHandler(
userService: container.resolve(UserService.self)
)
}
container.register(PushNotificationOpenHandler.self) {
PushNotificationOpenHandler(
analyticsService: container.resolve(AnalyticsService.self)
)
}
}
}