If application uses inversion of control and its structure is:
- Controllers
- Core
- Services
Controllers can reference only Core (Interfaces) and Services contain classes that implement those Interfaces.
When I want to create a new service that is static I am not sure how to call that service in my controller. Interfaces can't be static. Is there some design pattern that would fit my needs?
Aucun commentaire:
Enregistrer un commentaire