[TYPO3-mvc] DI requirements

Claus Fassing claus at fassing.eu
Sat Jan 22 16:46:29 CET 2011


Am 22.01.2011 07:02, schrieb Sebastian Kurfürst:
> Hey,
>> your class needs to implement the t3lib_Singleton interface, because only those can be injected in a setter. Otherwise Extbase would not know which exact instance of the class should be injected.
> This has been changed in RC1. Now prototypes are also allowed. See the
> ChangeLog for further information.
> 
> Greets, Sebastian

I got it. Thank you Sebastian.
Looks much better cause a service class is stateless and shouldn't be a
singleton.

Greetz Claus


More information about the TYPO3-project-typo3v4mvc mailing list