mardi 5 juillet 2016

Does Laravel not have a factory style service container resolver?

Does the concept of a factory service exist in Laravel? I want to create a service provider that allows me to pass some additional configuration parameters.

I'm used to Silex where I can use the Pimple factory method: http://ift.tt/29sNOX5

Plenty of other frameworks like Angular2 have this feature as well, but I'm not seeing anything in the Laravel docs -- does this feature not exist in their IoC container?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire