Re: [PEPr] New proposal PEAR2_Net_RouterOS

From: Date: Sat, 03 Sep 2011 23:58:05 +0000
Subject: Re: [PEPr] New proposal PEAR2_Net_RouterOS
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-54477@lists.php.net to get a copy of this message
2011/9/3 Васил Рангелов <boen.robot@gmail.com>: > Hello. > > I'd like to propose a new package. The PEPr draft being > https://pear.php.net/pepr/pepr-proposal-show.php?id=664 Excellent! > And I also have some questions regarding Pyrus... the most important one > right now is, and I know it might seem like a silly question... How do I use > \PEAR2\Exception? I've tested my package with \Exception (and it works...), > but I can't find out how to autoload or include \PEAR2\Exception, mainly > because the "php" folder of Pyrus (both the system and user one) has nothing > but my package (and PEAR2_Pyrus_Developer... naturally). Am I missing > something, or is \PEAR2\Exception nonexistent yet, but just planned? We're not recommending extending the PEAR2\Exception class. All packages should implement a base exception interface, then extend and throw SPL Exceptions which implement this interface. https://wiki.php.net/pear/rfc/pear2_exception_policy -- Brett Bieber

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