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

Ernesto Baschny [cron IT] ernst at cron-it.de
Thu Oct 9 14:25:28 CEST 2008


Martin Kutschker wrote: on 09.10.2008 13:58:
> 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 :)

Heh, yea, sorry, I was one day too late, I just discovered. ;) Glad to
see at least that some share the same thoughts I already had.

Cheers,
Ernesto


More information about the TYPO3-team-core mailing list