In Laravel Service container documentation mentioned that:
There is no need to bind classes into the container if they do not depend on any interfaces. The container does not need to be instructed on how to build these objects, since it can automatically resolve these objects using reflection.
Is that mean that we don’t need to create our own custom service provider if they don’t have an interface. and Laravel will use a reflection?
https://medium.com/grevo-techblog/service-provider-in-laravel-3b7267b0576e
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire