Re: PhD class renamings
| From: | Christian Weiske | Date: | Tue, 16 Jun 2009 08:34:01 +0000 |
| Subject: | Re: PhD class renamings | ||
| References: | 1 2 3 4 5 6 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969380490@lists.php.net to get a copy of this message | ||
Hi Hannes,
> >> But that is the only difference?
> > Yes.
>
> I don't see any explicit mention of the vendor directory must being
> lowercase (although all examples are lowercased)..
That was consensus - lowercasity is to distinguish between "normal" directories (i.e.
class dirs) and namespace dirs - at least in the PEAR2 standards.
> But ok, then I prefer to use 'phd' and make dirty autoload workaround
> until we move to namespaces.
>
> ..actually.
> That will make the namespace name 'phd\PhD\', 'phd\PhD\Reader',
> 'phd\PhD\Package\PEAR' ?
No. When we use namespaces, we don't need the PhD class prefix anymore.
So without namespaces:
PhD_Package_PEAR_Web
with namespace:
phd\Package_PEAR_Web
--
Regards/Mit freundlichen Grüßen
Christian Weiske