[TYPO3-project-4-3] FYI: patch for autoloader is in the BT
Martin Kutschker
masi-no at spam-typo3.org
Sun Nov 2 09:50:25 CET 2008
Dmitry Dulepov schrieb:
> Hi!
>
> Martin Kutschker wrote:
>> t3lib_div::makeInstance uses a private static variable. Maybe you didn't
>> read the thread where we talked about singletons, but it turned out that
>> it is better (for the unit tests we may see some day) to use a storage
>> outside of the class itself (in our case t3lib_div::makeInstance).
>
> It will not look good... You will have to use one of these two:
>
> $autoload = t3lib_div::makeInstance('t3lib_autoload');
> $autoload->installAutoloader();
>
> or
>
> t3lib_div::makeInstance('t3lib_autoload')->installAutoloader();
I have applied your patch and changed it to the latter.
It still works :)
Masi
More information about the TYPO3-project-4-3
mailing list