Digital PCT265 story ONEAPP-7249 - Registry signature update.
This commit is contained in:
parent
85747b146e
commit
9ff641060e
@ -50,9 +50,9 @@ public struct ModelRegistry {
|
||||
|
||||
/// A convenience wrapping function where error handling is managed within the class.
|
||||
/// - Parameter type: Takes an object of ModelProtocol.self which is used to register
|
||||
public static func register<M: ModelProtocol>(_ type: M.Type) {
|
||||
public static func register<M: ModelProtocol>(_ type: M.Type, allowsReplace: Bool = false) {
|
||||
do {
|
||||
try throwable_register(type: type)
|
||||
try throwable_register(type: type, allowsReplace: allowsReplace)
|
||||
} catch {
|
||||
handleError(error)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user