Re: PEAR2 package naming standards (namespace usage)
| From: | Joshua Eichorn | Date: | Wed, 27 Aug 2008 22:59:15 +0000 |
| Subject: | Re: PEAR2 package naming standards (namespace usage) | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-50667@lists.php.net to get a copy of this message | ||
Baptiste Autin wrote:
With the current proposal I *cannot* do this, because, if I understandThe difference being that if your releases code as a subpackage then its treated more or less like a new package. -joshcorrectly namespaces would be: pear2::<package>::<Class> pear2::<package_subpackage>::<Class>Joshua told me that I was allowed to have a class like: pear2::php_uml::xmi::Builder.php So I guess it means that you can have, like you need: pear2::<package>::<subpackage>::<Class> (stored into pear2/package/subpackage/Class.php) And why not: pear2::<package>::<subpackage1>::<subpackage2>::<Class> (stored into pear2/package/subpackage1/subpackage2/Class.php) Baptiste Thats not actually subpackage, its just a sub-namespace, but yes thats allowed.