-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDataSourceDependencyAssembler.swift
More file actions
40 lines (32 loc) · 1.07 KB
/
DataSourceDependencyAssembler.swift
File metadata and controls
40 lines (32 loc) · 1.07 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
//
// DataSourceDependencyAssembler.swift
// DataSource
//
// Created by 최정인 on 6/26/25.
//
import Domain
import Foundation
import Shared
public struct DataSourceDependencyAssembler: DependencyAssemblerProtocol {
public init() { }
public func assemble() {
DIContainer.shared.register(type: AuthRepositoryProtocol.self) { _ in
return AuthRepository()
}
DIContainer.shared.register(type: OnboardingRepositoryProtocol.self) { _ in
return OnboardingRepository()
}
DIContainer.shared.register(type: UserDataRepositoryProtocol.self) { _ in
return UserDataRepository()
}
DIContainer.shared.register(type: RecommendedRoutineRepositoryProtocol.self) { _ in
return RecommendedRoutineRepository()
}
DIContainer.shared.register(type: EmotionRepositoryProtocol.self) { _ in
return EmotionRepository()
}
DIContainer.shared.register(type: RoutineRepositoryProtocol.self) { _ in
return RoutineRepository()
}
}
}