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

Ingo Renner ingo at typo3.org
Wed Oct 8 10:59:31 CEST 2008


Martin Kutschker wrote:

Hi Masi,

>> Do you mean it should be renamed $typo3CacheManager ?
> 
> Something like that. But there is no real naming scheme for TYPO3 globals :(

then let's introduce one, let's just let them begin with $typo3
I'll take care of adding it to the CGL.

>> How about a simple check whether the class has a method named
>> getInstance(), if that is the case it is used instead of the new operator?
> 
> 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.

But that's not an answer to my suggestion... =/


Ingo

-- 
Ingo Renner
TYPO3 Core Developer, Release Manager TYPO3 4.2


More information about the TYPO3-team-core mailing list