Re: Doctrine base class

From: Date: Fri, 29 Dec 2006 11:02:49 +0000
Subject: Re: Doctrine base class
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-45358@lists.php.net to get a copy of this message
On Fri Dec 29, 2006 at 09:4836AM +0100, Lukas Kahwe Smith wrote: > 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. This is what Rasmus suggested some weeks ago, isn't it? I'm +1 on this. I'd go as far as forcing people to name this "include all"-file in a consistent way. Something like DB/Doctrine/Bootstrap.php seems fine for me if the package is called DB_Doctrine. > 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. So we are essentially aiming at getting rid of (include|require)_once, no? - Martin

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