symfony - Symfony2 service loading -


i designing application in symfony2 , had question around when services instantiated. basically, services instantiated when container configured in application load cycle or @ point when service requested container?

i understand can flag services lazy loaded through proxy manager wanted know happens default.

to add context, want create factory method returns different services , unsure whether define services in service config , fetch them container when requested or instantiate them in factory itself.

if symfony loads services when container loaded that's lot of excessive overheard i'm trying do. i'd rather not define concrete classes in factory method.

thanks help.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

html - Repeat image to extend header to fill screen -

javascript - Backbone.js getting target attribute -