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

Martin Kutschker masi-no at spam-typo3.org
Tue Sep 1 09:39:30 CEST 2009


Mathias Schreiber [wmdb >] schrieb:
> Martin Kutschker schrieb:
>> The final keyword is used solely for classes that have only static
>> functions and should therefore not be instantiated at all. Technically
>> you could extend them, but it makes little sense to do so.
> 
> I disagree.
> It happened quite a few times that we needed to patch (ergo xclass)
> befunc or t3lib_div.

I stumbled into the same problem, but I don't like Steffens approach to
"extend" a static class.

Better would be to fade out these static classes and create singletons
instead.

Masi


More information about the TYPO3-team-core mailing list