Doctrine base class
| From: | Lukas Kahwe Smith | Date: | Fri, 29 Dec 2006 08:48:36 +0000 |
| Subject: | Doctrine base class | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-45356@lists.php.net to get a copy of this message | ||
Hi,
I am wondering what you guys think about the Doctrine static core class which contains a few helpers:
http://doctrine.pengus.net/svn/trunk/lib/Doctrine.php
Essentially it contains a few loader helpers. I think some of them should be part of PEAR2. At the core is the autoload implementation. Furthermore there is also a method to loadAll to load everything at once. These seem like candidates for PEAR2.
I think in the interest of making it possible of getting rid if conditional includes every new PEAR package should probably also have a file that flat out includes every file in the package.
As a result new PEAR packages can leverage autoload, conditionally include all files with a method call or load everything at once with a static unconditional include. This gives ultimate flexibility for all users.
regards,
Lukas