vendredi 5 mai 2017

Laravel named dependencies in Service Container

Is there a way in Laravel to name dependencies in the Service Container and resolve them using said name for use with constructor injection? What I'm after is similar to how C#.Net libraries (untity/autofac) allow for this, see With Unity how do I inject a named dependency into a constructor?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire