diff --git a/Dip/Dip/RuntimeArguments.swift b/Dip/Dip/RuntimeArguments.swift index d5e8f8d..f9e0660 100644 --- a/Dip/Dip/RuntimeArguments.swift +++ b/Dip/Dip/RuntimeArguments.swift @@ -60,6 +60,8 @@ extension DependencyContainer { return resolve(tag: tag) { (factory: (Arg1) -> T) in factory(arg1) } } + ///**Deprecated** Use `resolve(tag:withArguments:)` method instead. + @available(*, deprecated, message="Use `resolve(tag:withArguments:)` method instead.") public func resolve(tag tag: Tag? = nil, _ arg1: Arg1) -> T { return resolve(tag: tag) { (factory: (Arg1) -> T) in factory(arg1) } } @@ -76,6 +78,8 @@ extension DependencyContainer { return resolve(tag: tag) { (factory: (Arg1, Arg2) -> T) in factory(arg1, arg2) } } + ///**Deprecated** Use `resolve(tag:withArguments:_:)` method instead. + @available(*, deprecated, message="Use `resolve(tag:withArguments:_:)` method instead.") public func resolve(tag tag: Tag? = nil, _ arg1: Arg1, _ arg2: Arg2) -> T { return resolve(tag: tag) { (factory: (Arg1, Arg2) -> T) in factory(arg1, arg2) } } @@ -91,6 +95,8 @@ extension DependencyContainer { return resolve(tag: tag) { (factory: (Arg1, Arg2, Arg3) -> T) in factory(arg1, arg2, arg3) } } + ///**Deprecated** Use `resolve(tag:withArguments:_:_:)` method instead. + @available(*, deprecated, message="Use `resolve(tag:withArguments:_:_:)` method instead.") public func resolve(tag tag: Tag? = nil, _ arg1: Arg1, _ arg2: Arg2, _ arg3: Arg3) -> T { return resolve(tag: tag) { (factory: (Arg1, Arg2, Arg3) -> T) in factory(arg1, arg2, arg3) } } @@ -106,6 +112,8 @@ extension DependencyContainer { return resolve(tag: tag) { (factory: (Arg1, Arg2, Arg3, Arg4) -> T) in factory(arg1, arg2, arg3, arg4) } } + ///**Deprecated** Use `resolve(tag:withArguments:_:_:_:)` method instead. + @available(*, deprecated, message="Use `resolve(tag:withArguments:_:_:_:)` method instead.") public func resolve(tag tag: Tag? = nil, _ arg1: Arg1, _ arg2: Arg2, _ arg3: Arg3, _ arg4: Arg4) -> T { return resolve(tag: tag) { (factory: (Arg1, Arg2, Arg3, Arg4) -> T) in factory(arg1, arg2, arg3, arg4) } } @@ -121,6 +129,8 @@ extension DependencyContainer { return resolve(tag: tag) { (factory: (Arg1, Arg2, Arg3, Arg4, Arg5) -> T) in factory(arg1, arg2, arg3, arg4, arg5) } } + ///**Deprecated** Use `resolve(tag:withArguments:_:_:_:_:)` method instead. + @available(*, deprecated, message="Use `resolve(tag:withArguments:_:_:_:_:)` method instead.") public func resolve(tag tag: Tag? = nil, _ arg1: Arg1, _ arg2: Arg2, _ arg3: Arg3, _ arg4: Arg4, _ arg5: Arg5) -> T { return resolve(tag: tag) { (factory: (Arg1, Arg2, Arg3, Arg4, Arg5) -> T) in factory(arg1, arg2, arg3, arg4, arg5) } } @@ -136,6 +146,8 @@ extension DependencyContainer { return resolve(tag: tag) { (factory: (Arg1, Arg2, Arg3, Arg4, Arg5, Arg6) -> T) in factory(arg1, arg2, arg3, arg4, arg5, arg6) } } + ///**Deprecated** Use `resolve(tag:withArguments:_:_:_:_:_:)` method instead. + @available(*, deprecated, message="Use `resolve(tag:withArguments:_:_:_:_:_:)` method instead.") public func resolve(tag tag: Tag? = nil, _ arg1: Arg1, _ arg2: Arg2, _ arg3: Arg3, _ arg4: Arg4, _ arg5: Arg5, _ arg6: Arg6) -> T { return resolve(tag: tag) { (factory: (Arg1, Arg2, Arg3, Arg4, Arg5, Arg6) -> T) in factory(arg1, arg2, arg3, arg4, arg5, arg6) } }