[TYPO3-50-general] Persitence: reinjectDependencies doens't work with constructor injection?

Sebastian Kurfürst sebastian at typo3.org
Sat Jul 4 09:33:16 CEST 2009


Hi Andi,

> Should we support something like the above example? Or should we  
> just deny constructor injection of not persistable
> objects in perstistable objects?
Currently I do not have a clean solution for this - thus I'd propose  
to clearly tell people that they should use setter injection.
Instead of __construct, cannot you use the lifecycle initialize methods?

Greets,
Sebastian


More information about the TYPO3-project-5_0-general mailing list