Re: Autoload and namespaces
| From: | Greg Beaver | Date: | Fri, 05 Dec 2008 06:14:36 +0000 |
| Subject: | Re: Autoload and namespaces | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-42110@lists.php.net to get a copy of this message | ||
Tony Bibbs wrote:
> Given this:
>
> use \MyProject\SubProjectA as A;
>
> A\foo::someMethod();
>
> The className given is to the autoload function is
> "MyProject\SubProjectA\foo" not "\MyProject\SubProjectA\foo" (notice lack
> of
> leading \)
>
> I just wanted to verify that behaves as intended (which I'm guessing it
> does).
Yes. This is probably a good item to add to the FAQ.
Greg