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

Ingo Renner ingo at typo3.org
Mon Mar 2 14:21:36 CET 2009


Dmitry Dulepov wrote:

Hi Dmitry,

> Veto this because it will break many extensions that use constructors with parameters.

which is wrong because there will be a deprecated message as with all 
other deprecations. It will be removed with 4.5 at the earliest.

Extensions like always can set a requirement for the TYPO3 core version, 
too.

 > This change is not useful.

It is, read the description: using makeInstanceClassName() you can 
circumvent the check for the t3lib_Singleton implementation.
Apart from that it simplyfies the instanciation of objects as you only 
need makeInstance(), even with constructor parameters.


all the best
Ingo

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



More information about the TYPO3-team-core mailing list