[TYPO3-core] RFC #10497: Mark t3lib_div::makeInstanceClassName() as deprecated

Dmitry Dulepov dmitry at typo3.org
Mon Mar 2 14:44:33 CET 2009


Hi!

Ingo Renner wrote:
> It is, read the description: using makeInstanceClassName() you can
> circumvent the check for the t3lib_Singleton implementation.

Just because of "can" you are ready to force many sites out there to show deprecation warnings? Don't you think that the developer will care to use singletons properly if he declared them as singletons?

> Apart from that it simplyfies the instanciation of objects as you only
> need makeInstance(), even with constructor parameters.

Slooooooooooooooooooooooooooooow because of reflection.

-- 
Dmitry Dulepov
TYPO3 core team
http://dmitry-dulepov.com/
"Sometimes they go bad. No one knows why" (Cameron, TSCC, "Dungeons&Dragons")


More information about the TYPO3-team-core mailing list