can anyone please clear the air for me! why do we need to implement an interface by a repository class and bind them in the service provider?? what's the use of the interface if it was binded with a specific class?? and if so, why can't we inject the repository itself in the controller? last thing, what is the dependency anyway? Thanks.
Aucun commentaire:
Enregistrer un commentaire