2010年1月24日星期日

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

Hi,

I've been experimenting with the autoloading support in ZF 1.10 for
autoloading PHP namespaces, and it works fine. However, I'd like to know if
the resource and module autoloaders support PHP namespaces, as well as the
plugin loaders (for example, adding an action helper which is part of a PHP
namespace). Autoloading controllers in PHP namespaces would also be useful,
such as Blog\PostController.

Is autoloading support going to be redone and simplified in ZF 2.0?

For basic libs I want to use something like:

autoloadermappings.Doctrine = APPLICATION_PATH . "/library" (anything with a
namespace beginning with "Doctrine" gets loaded from /library, for example,
Doctrine\Orm\OrmException would be loaded from
/library/Doctrine/Orm/OrmException.php. If a mapping does not exist, the
include path is checked.

For "resources" I want to use a similar system to the current resource
autoloader, but one that obviously supports PHP namespaces.

Thoughts?
--
View this message in context: http://n4.nabble.com/Autoloading-1-10-and-beyond-incl-PHP-namespaces-tp1288828p1288828.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: