[TYPO3-core] RFC: #11836: Remove final from classes

Stefan Geith typo3dev2008.nospam1 at geithware.de
Tue Sep 1 12:19:12 CEST 2009


Oliver Hader schrieb:
> Yes, but a various number of extension uses static calls to t3lib_div -
> so we cannot just transform this to a singleton object.

Why can't t3lib_div be instantiated as a singleton _parallel_ to using 
it static ?
We could make the static usage of t3lib_div deprecated and start usage 
of $GLOBALS['T3LIB_DIV'] (or maybe $GLOBALS['T3DIV']).

Nothing gets broken yet and we can start to convert the static calls to 
calls to the singleton - right ?

Static calls in core could be converted in (e.g.) Version 4.4 of Typo3.

Plugin-Devs could/should change their calls, but if they don't change to 
the singleton, the only disadvantage is, that the cannot use 
Xclassed-extensions of t3lib_div...

What do you think ? Did I forget an aspect ?

/Stefan





More information about the TYPO3-team-core mailing list