Re: Doctrine base class

From: Date: Fri, 29 Dec 2006 08:52:56 +0000
Subject: Re: Doctrine base class
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-45357@lists.php.net to get a copy of this message
Lukas Kahwe Smith wrote:
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.
It makes sense, development version can use autoload or conditional includes and, when deployed to production, use the include-all to be nice to opcode caches. Arnaud.

« previous php.pear.dev (#45357) next »