[TYPO3-project-4-3] Status of autoloader

Martin Kutschker masi-no at spam-typo3.org
Wed Jun 10 15:18:41 CEST 2009


Oliver Hader schrieb:
> 
>> * scan extensions and add classes to registry automatically
> 
> The problems are in updating a local registry file that has to happen
> every time an extension is installed/uninstalled. If you're about to
> develop a new extension you'll have to trigger the regeneration of all
> files manually.

So?

>> * find XCLASS, removal of the last lines in class files doing the
>> require_once. XCLASS is defined in GLOBALS array, so finding them by
>> traversing the GLOBALS shouldn't be such hard task. Add the XCLASS in
>> registry (you could use a chain syntax: classA => ux_classA =>
>> ux_ux_classA)
> 
> This might change behaviour since until now XCLASSes are always included
> at the end of a file.

An XLASS-File includes by definition only one class (or classes) but
never code that has to be exectuted in the global space.

The current way to include a class file because it MIGHT include an
XCLASS is wrong. All real XCLASS-Files are register in
ext_localconf.php. This information has to (should) be used.

Masi


More information about the TYPO3-project-4-3 mailing list