[英]What is version of Zend Framework?
One of our previous developer used this class but i couldn't find the zend version and documentation of this class我们以前的一位开发人员使用过这个类,但我找不到这个类的 Zend 版本和文档
use Core\\Db\\BaseModels\\BaseDbTable;
Please bear with me i have just started my zf training请耐心等待,我刚刚开始我的 zf 培训
Thank you谢谢
That's not a Zend-Framework
class.那不是
Zend-Framework
类。 The namespace of all Zend classes start with Zend\\
.所有 Zend 类的命名空间都以
Zend\\
开头。 Similarly, all Laminas (Zend migrated to Laminas) classes namespaces start with Laminas\\
.类似地,所有 Laminas(Zend 迁移到 Laminas)类命名空间都以
Laminas\\
开头。
Beside that, Zend-Framework has not a "version" anymore since 2017 (when version 2.4.13 was released).除此之外,Zend-Framework 自 2017 年(2.4.13 版发布时)就不再有“版本”了。
Then is not a "monolithic" framework, but it has been divided in packages (based on functionnalities/features), meaning that the "zend version" depends on what package you are using. then 不是一个“单体”框架,但它已被划分为包(基于功能/特性),这意味着“zend 版本”取决于您使用的包。
To understand what package you are looking for, you have to dig inside Core\\Db\\BaseModels\\BaseDbTable
and see which zend classes it uses.要了解您正在寻找什么包,您必须深入
Core\\Db\\BaseModels\\BaseDbTable
并查看它使用哪些 zend 类。 From that, you have to search inside vendor/zend/
directory where this classes are located, and from that you have the package your application is using.从那里,您必须在这些类所在的
vendor/zend/
目录中进行搜索,并从中获得您的应用程序正在使用的包。
Finally, when you have the package (which may probably be zendframework/zend-db
), you must look in composer.lock
file to get what version is installed:最后,当你有包(可能是
zendframework/zend-db
)时,你必须查看composer.lock
文件以获取安装的版本:
...
{
"name": "laminas/laminas-db",
"version": "2.11.3",
...
}
...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.