[TYPO3-core] Feature #9633: Implement autoloading for TYPO3

Martin Kutschker masi-no at spam-typo3.org
Wed May 20 15:59:33 CEST 2009


Oliver Hader schrieb:
> Hi Xavier,
> 
> Xavier Perseguers schrieb:
>>> Please test with latest revision 5455 and tell us, whether that
>>> misbehaviour still exists there.
>> Yes, because it really looks like the problem I had yesterday.
> 
> Ok, I found another issue that is related to this situation. Classes of
> t3lib get loaded automatically in t3lib_div::makeInstance(). Other
> classes have some difficulties.
> 
> I've added a patch that uses autoloading on the class_exists() checks in
> makeInstanceClassName() [deprecated method, should not be used in
> future] and getClassName().

Hm, seems some overhead for me (ok as a quick fix).

But I think that the installer/autoloader can derive from the XCLASS
entries in ext_localconf.php the necessary information to see if a class
has been overriden:

$GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS'][path_to_classfile]

Masi


More information about the TYPO3-team-core mailing list