gpt4 book ai didi

zend-framework - Zend_Application_Module_Autoloader 和 Zend_Loader_Autoloader_Resource 有什么区别?

转载 作者:行者123 更新时间:2023-12-04 08:28:01 24 4
gpt4 key购买 nike

我注意到同样的情况发生在:

$moduleLoader = new Zend_Application_Module_Autoloader(array(
'namespace' => '',
'basePath' => APPLICATION_PATH));
$moduleLoader->addResourceType('acl','acls/','Acl');


$resourceLoader = new Zend_Loader_Autoloader_Resource(array(
'basePath' => APPLICATION_PATH,
'namespace' => '',
));
$resourceLoader->addResourceType('acl', 'acls', 'Acl')

事实上,有什么区别?

最佳答案

这可能会让你开始。我仍在寻找更好的差异。

Zend_Application_Module_Autoloader provides the functionality needed to map the various resources under a module to the appropriate directories, and provides a standard naming mechanism as well.

Zend_Loader_Autoloader_Resource is intended to simplify loading resources that do not have 1:1 class prefix/filesystem mappings. The primary use case is for use with modular applications, to allow autoloading of module-specific classes.


this page .或许能给你一些启示。

据我所知, Zend_Application_Module_Autoloader 基本上是具有预定义映射的资源,为您提供了一个目录结构。

关于zend-framework - Zend_Application_Module_Autoloader 和 Zend_Loader_Autoloader_Resource 有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2152392/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com