Re: PEAR2 package naming standards (namespace usage)

From: 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 understand
correctly 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.
The difference being that if your releases code as a subpackage then its treated more or less like a new package. -josh

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