refactor code to use dependancy provider
Closed this issue · 0 comments
filipdulic commented
refactor dependency injection to use dependency_provider which implements various traits that provide various dependencies
trait UserRepoProvider {
fn user_repo(&self) -> impl UserRepo
}
have usecases depend on a single dependency_provider generic which implements various providers.