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

Oliver Hader oliver at typo3.org
Wed Sep 2 11:49:39 CEST 2009


Hi Benni,

Benjamin Mack schrieb:
> Hi Steffen,
> 
> On 01.09.09 10:45, Steffen Kamper wrote:
>> Hi,
>>
>> i expected negative voting, nethertheless it's worth to think about that
>> architecture and about possibilities to do it a more flexible way.
>> Unit tests is a good example for the limitation, see the test with
>> t3lib_extmgm where first test always fails.
>> Maybe we find a solution, as Masi already suggested singleton pattern.
> -1 on this idea from me as well.
> I propose something like this:
> 
> t3lib_div::getInstance()->array2xml($arr);
> 
> then, we use the magic function __call with a hook inside to call
> additional functions from extensions.
> 
> That's IMHO a very clean way that is also very extendable.

Thanks for your feedback! I like the singleton idea as already mentioned
in earlier posts. However, using __call() slows down the whole thing and
it does not allow to override existing functions.

Since there are already enough "-1" I'd say this RFC is dropped and we
should start to think about the singletons and the possibility to extend
static classes during TYPO3 4.4 development.

olly
-- 
Oliver Hader
TYPO3 Release Manager 4.3


More information about the TYPO3-team-core mailing list