Digital PCT265 story ONEAPP-7249 - Registry signature update.

This commit is contained in:
Hedden, Kyle Matthew 2024-04-30 20:36:00 -04:00
parent 85747b146e
commit 9ff641060e

View File

@ -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)
}