Le 25/02/2011 22:14, Bernhard Schussek a écrit :
2011/2/25 John Wards<[email protected]>:
I don't think FormFactory should use Doctrine's EntityManager.
I agree. I also don't like that FormFactory depends on so many
services that need to be instantiated independent of whether the field
that requires them is actually created.
I see two solutions: Create one factory per field or pass those
dependencies manually when creating a field (which means more work by
the end user).
The third solution is to inject the container. This way the dependencies
are lazy-loaded. If the FormFactory has a lot of dependencies and uses
only a few of them each time it can be a great improvement for performances.
--
Christophe | Stof
--
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