Re: PEAR2 standards: anything good at all?

From: Date: Mon, 16 Jul 2007 15:46:18 +0000
Subject: Re: PEAR2 standards: anything good at all?
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-47528@lists.php.net to get a copy of this message
Philippe Jausions wrote:
Given the above, how do we implement factory() methods in PEAR2 packages, especially in the cases of fallback drivers and/or optional dependencies?
This is a valid concern (finally someone that brings up a valid concern in a well explained manner). I guess first you check if the class exists without triggering autoload, then you could call our class loader method, which returns false if its failed and you can then throw an Exception. regards, Lukas

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