Feature Request
Currently it's not possible to directly inject parameters such as String, Int etc. using the AutoSetup protocol.
The following code will result in a crash:
/// @Singleton
class ApiClient {
private let baseUrl: String
init(baseUrl: String) {
self.baseUrl = baseUrl
}
}
Error: DependencyContainer.ResolveError<Swift.String>.notRegistered
Proposed Solution
DependencyContainer does already support injecting and resolving objects using a Key: AnyHashable.
The question is how to integrate that feature using the AutoSetup code generation?
Feature Request
Currently it's not possible to directly inject parameters such as
String,Intetc. using theAutoSetupprotocol.The following code will result in a crash:
Error:
DependencyContainer.ResolveError<Swift.String>.notRegisteredProposed Solution
DependencyContainerdoes already support injecting and resolving objects using aKey: AnyHashable.The question is how to integrate that feature using the
AutoSetupcode generation?