Re: Class Prefix
| From: | Daniel O'Connor | Date: | Tue, 22 Sep 2009 04:26:55 +0000 |
| Subject: | Re: Class Prefix | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-52872@lists.php.net to get a copy of this message | ||
On Tue, Sep 22, 2009 at 1:40 PM, <mgatto@lisantra.com> wrote:
> Hi,
>
> While packaging VersionControl_Hg to finish up the proposal, I got this warning:
>
> Warning: in Hg.php: class "VersionControl_Hg" not prefixed with package name
> "Hg".
>
> So, unlike what I'm used to, I shouldn't fully qualify the class names? Dropping
> "VersionControl_" would do what? Keeping it would break installation?
>
Uhm, what now?
Presumably you have:
package_name:
VersionControl_HG
VersionControl\HG.php
class VersionControl_HG {
/* ... */
}
?