I've recently run into several issues where I wanted to initialize a service after all the dependencies have been injected. Since it's not always possible to do so utilizing constructor arguments, a callback after all properties have been set would be beneficial. This can also be used to validate the proper setup of services.
In Spring this is supported by either implementing an InitializeBean interface or specifying an init-method attribute in the service configuration. Since this adds virtually no overhead, I cannot think of any reasons not to add this. I'd also volunteer on implementing this if no-one else is/wants to work on it. Johannes -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com 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
