[TYPO3-mvc] DI requirements
Pascal Jungblut
mail at pascal-jungblut.com
Sat Jan 22 01:57:49 CET 2011
Hi Claus,
On 22.01.2011, at 00:08, Claus Fassing wrote:
> Break down every function to catch what's going wrong, but I always get
> a WrongScope Exception called "Setter dependencies can only be
> singletons" (1292860859).
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.
Regards
Pascal
More information about the TYPO3-project-typo3v4mvc
mailing list