[英]Can Laminas Dependency Plugin be removed after the migration from ZF3 to Laminas?
I migrated an application from Zend Framework 3 to Laminas.我将应用程序从 Zend Framework 3 迁移到 Laminas。 During the migration the migration script added the
laminas/laminas-dependency-plugin
dependency to the composer.json
.在迁移过程中,迁移脚本将
laminas/laminas-dependency-plugin
依赖项添加到composer.json
。 After that I removed this (by running $ composer remove laminas/laminas-dependency-plugin
).之后我删除了它(通过运行
$ composer remove laminas/laminas-dependency-plugin
)。 For now there are no errors and all the tests are "green".目前没有错误,所有测试都是“绿色”的。 But nevertheless I would like to be sure, that the package was really only needed for the migration and I don't have to expect any troubles caused by missing this.
但无论如何,我想确定的是,该软件包确实仅在迁移时需要,而且我不必期望因缺少它而造成任何麻烦。
Is the package laminas/laminas-dependency-plugin
needed after a successful completion of the migration from Zend Framework 3 to Laminas?成功完成从 Zend Framework 3 到 Laminas 的迁移后,是否需要包
laminas/laminas-dependency-plugin
?
laminas/laminas-dependency-plugin
is needed for the case where some of your dependencies want zendframework packages.对于某些依赖项需要 zendframework 包的情况,需要 laminas
laminas/laminas-dependency-plugin
。
For example, when some of your dependencies want laminas/laminas-stratigility
and some other wants zendframework/zend-stratigility
composer will install laminas/laminas-stratigility
to satisfy both dependencies.例如,当你的一些相关性要
laminas/laminas-stratigility
和其他一些欲望zendframework/zend-stratigility
作曲家将安装laminas/laminas-stratigility
同时满足依赖性。 Dependency plugin will have no effect.依赖插件将不起作用。
However, when some dependency wants zendframework/zend-inputfilter
and nothing wants its laminas counterpart composer will install zendframework/zend-inputfilter
.然而,当一些依赖需要
zendframework/zend-inputfilter
并且没有什么需要它的zendframework/zend-inputfilter
对应的 composer 将安装zendframework/zend-inputfilter
。 This is where dependency plugin comes into play and will rewrite it to laminas/laminas-inputfilter
这是依赖插件发挥作用的地方,并将其重写为
laminas/laminas-inputfilter
If nothing is installing zendframework/* packages, you are fine.如果没有安装 zendframework/* 包,你就没事。
laminas/laminas-dependency-plugin
is not a hard dependency and you can remove it. laminas/laminas-dependency-plugin
不是一个硬依赖,你可以删除它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.