[TYPO3-team-core-v5] Package configuration / class loader changes

Malte Jansen mail at maltejansen.de
Wed Mar 26 19:58:14 CET 2008


Hi Robert,

for the PHPCodeSniffer I have to add and remove an autoload-class.

Will there be a special handling for this?

Just adding an include path does not work, because of the existing 
PHP_CodeSniffer-autoloader, which breaks/disables the common 
FLOW3-autoloader, if I would not remove it.

Cheers,

Malte



Robert Lemke schrieb:
> Hi folks,
> 
> I just committed some changes [1] regarding the package configuration 
> which will affect your existing Package.php configurations (they won't 
> work anymore).
> 
> First thing which has changed is that the file must now be named 
> "Packages.php". And secondly, yet more important, it must not contain 
> any real PHP code anymore but provide only configuration.
> 
> Currently there are two ways to include additional classes (from the 
> Resources directory) into the class loading mechanism:
> 
>  1. Register a class file explicitly
>  2. Add a path to the PHP include path
> 
> The way I implemented these is somewhat preliminary and might change in 
> the future, but for now it's the way how we need to handle it. There are 
> examples for 1. and 2. you might want to look at:
> 
>  1. 
> http://forge.typo3.org/repositories/entry/packages-smarty/trunk/Configuration/Packages.php 
> 
>  2. 
> http://forge.typo3.org/repositories/entry/packages-phpunit/trunk/Configuration/Packages.php 
> 
> 
> The placeholders I'm using there ("%...%") are currently the only ones I 
> implemented. If you need more or you already need a way to register your 
> own class loader please let me know.
> 
> Cheers,
> robert
> 
> [1] http://forge.typo3.org/repositories/revision/16?rev=660


More information about the TYPO3-team-core-v5 mailing list