DEV Community

Discussion on: Make your own service container (php)

Collapse
 
naelsonbrasil profile image
NaelsonBrasil

Do you have any tutorial of how to create and understand the way best analogy of service providers? Most late i will learn reading this it article, for just now thank so much!

Collapse
 
azibom profile image
Mohammad Reza

I personally look at the project in a big picture and seprate it to the diffrents bundles in my mind for example for example when you have a ecommerce project you can consider the order as a bundle and make a service provider for it and register all of your services which are related to the order in it (I use this strategy in the laravel for example but some frameworks like symfony have this bundles already)