We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee9d336 commit 514232aCopy full SHA for 514232a
Sources/SteamPress/Repositories/Application+SteamPress+Repositories.swift
@@ -54,6 +54,18 @@ public extension Application.SteamPress {
54
self.storage.makePostRepository = makeRespository
55
}
56
57
+ public func use(_ makeRepository: @escaping (Application) -> BlogUserRepository) {
58
+ self.storage.makeUserRepository = makeRepository
59
+ }
60
+
61
+ public func use(_ makeRepository: @escaping (Application) -> BlogTagRepository) {
62
+ self.storage.makeTagRepository = makeRepository
63
64
65
+ public func use(_ makeRepository: @escaping (Application) -> BlogPostRepository) {
66
+ self.storage.makePostRepository = makeRepository
67
68
69
public func initialize() {
70
self.application.storage[Key.self] = .init()
71
0 commit comments