[TYPO3-dev] How to use the new autoloader feature?

Ernesto Baschny [cron IT] ernst at cron-it.de
Fri May 29 17:32:04 CEST 2009


Martin Kutschker wrote: on 29.05.2009 12:57:

>> have a look to t3lib/core_autoload.php which is the registry for core
>> classes. There is a way for extensions as well providing own registry
>> file in root of extension dir (ext_autoload.php) which will be created
>> by extdeveval
> 
> IMHO using a standard filename and class name pattern should be enough
> for the autoloader to find the class. Only legacy class names that don't
> match the requirements should be registered manually.

That was my suggestion too, but it seems that we need to "register" all
classes in the array, even if they could be found by naming conventions.
 Might be a bit "faster".

extdeveval seems to have a function to generate the required file.

Cheers,
Ernesto




More information about the TYPO3-dev mailing list