Matthias is right, the initialize() method allows to reuse/recycle an object.
Fabien -- Fabien Potencier Sensio CEO - symfony lead developer http://www.sensiolabs.com/ http://www.symfony-project.com/ Sensio Labs Tél: +33 1 40 99 80 80 Matthias N. wrote: > On 29 Okt., 23:06, Bernhard Schussek <[EMAIL PROTECTED]> wrote: >> Hello! >> >> Why is in most of the core objects of symfony the method initialize() >> the preferred way of object initialization instead of using the >> constructor? Is there some special reason behind this? Isn't the object >> then in a kind of incomplete state between creation and the call of >> initialize? > > IMHO the only use of that is that you can initialize the object again > later if needed. > Or is there something related to exception handling? > > Regards, > Matthias > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en -~----------~----~----~----~------~----~------~--~---
