[TYPO3-core] RFC #9520: add a scheme to support singletons with t3lib_div::makeInstance

Steffen Kamper info at sk-typo3.de
Wed Oct 8 22:21:47 CEST 2008


Hi,

Martin Kutschker schrieb:
> This is a SVN patch request.
> 
> Branches: trunk
> 
> Description:
> 
> Let makeInstance test if an object implements the t3lib_singleton
> interface and if so keep a reference for later use.
> 
> Don't let the class itself store the instances because this won't work
> well with unit tests.
> 
> Masi
> 

+1 by reading (was clear in discussion already ;-) )

btw - the dummy class you created should hold your name instead of Ingo's

vg Steffen


More information about the TYPO3-team-core mailing list