2010年1月25日星期一

Re: [fw-mvc] Autoloading, 1.10 and beyond (incl. PHP namespaces)

-- darkangel <glen.84@gmail.com> wrote
(on Monday, 25 January 2010, 04:56 AM -0800):
> Thanks for your reply, Matthew.
>
> Would a "future refactor" likely mean 1.10 final, 1.11, or 2.0?

1.10 is feature-frozen, so 1.11 or later.

> I'd be interested to see your ideas WRT module autoloading, it'd be really
> nice to be able to use namespaces for my models, forms, etc., sooner rather
> than later.
>
> The ability to specify namespace to path mappings would surely make the
> autoloader a lot faster? (instead of searching all available directories)

Correct.

> I'm not sure "includePath" in SplClassLoader (http://gist.github.com/221634)
> is the best name to use, I was rather confused at first as to what it was.
> It's more of a "basePath" or "rootPath" IMHO.

Again, correct.

--
Matthew Weier O'Phinney
Project Lead | matthew@zend.com
Zend Framework | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc

没有评论: