[TYPO3-core] RFC #9505: Make the caches in TYPO3 use the new caching framework

Martin Kutschker masi-no at spam-typo3.org
Thu Oct 9 13:58:29 CEST 2008


Ernesto Baschny [cron IT] schrieb:
> Martin Kutschker wrote: on 08.10.2008 10:01:
> 
>>>> I suggested this once, but Robert told me that singletons are bad when
>>>> it comes to unit tests. I don't know, but maybe it helps (for unit
>>>> tests) if t3lib_div::makeInstance() would test if the class implements a
>>>> certain (fake) interface or has a certain doc comment set and stores a
>>>> reference to the object in a static variable.
> 
>>> Nice idea, I would welcome that, too!
>> Which one? There are two proposals.
> 
> Having an interface (why "fake"?) for singletons which makeInstance is
> aware of.

"fake" because it doesn't defines any methods and declares no constants.
It's just an empty shell.

Anway, thanx for taking part here, but the issues have been addressed
alreqady :)

Masi


More information about the TYPO3-team-core mailing list