Hey Max. When we started this process we looked into interface injection but we came up short. For us to have any communication with our persistence layer we had to introduce the user repository dependency into the UserModule.
We decided that our domain layer would:
Be free of all third-party code
Would only accept the relevant domain model as a param or a return type from the persistence layer
We figured this was adequate for our needs.
Do let me know how you get on and if you are able to overcome this.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey Max. When we started this process we looked into interface injection but we came up short. For us to have any communication with our persistence layer we had to introduce the user repository dependency into the
UserModule
.We decided that our domain layer would:
We figured this was adequate for our needs.
Do let me know how you get on and if you are able to overcome this.