From 9ff641060e4966560b1fa5b7ac6b1b73139f7c37 Mon Sep 17 00:00:00 2001 From: "Hedden, Kyle Matthew" Date: Tue, 30 Apr 2024 20:36:00 -0400 Subject: [PATCH] Digital PCT265 story ONEAPP-7249 - Registry signature update. --- MVMCore/MVMCore/Models/Model/ModelRegistry.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MVMCore/MVMCore/Models/Model/ModelRegistry.swift b/MVMCore/MVMCore/Models/Model/ModelRegistry.swift index 65e413d..dbb2afa 100644 --- a/MVMCore/MVMCore/Models/Model/ModelRegistry.swift +++ b/MVMCore/MVMCore/Models/Model/ModelRegistry.swift @@ -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(_ type: M.Type) { + public static func register(_ type: M.Type, allowsReplace: Bool = false) { do { - try throwable_register(type: type) + try throwable_register(type: type, allowsReplace: allowsReplace) } catch { handleError(error) }