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

Robert Lemke robert at typo3.org
Tue Mar 25 13:31:27 CET 2008


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
-- 
http://typo3.org/gimmefive
http://buzz.typo3.org/people/robert-lemke/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.netfielders.de/pipermail/typo3-team-core-v5/attachments/20080325/7dd4451d/attachment.pgp 


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