gpt4 book ai didi

shopware6 - 商店软件 6 : What is the usage or benefit of the custom/static-plugins folder?

转载 作者:行者123 更新时间:2023-12-03 08:02:23 24 4
gpt4 key购买 nike

Shopware 6 为应用程序和插件提供了以下文件夹结构:

<shopware root>
└ custom
├ app
├ plugins
└ static-plugins

显然,应用程序和插件文件夹用于保存您的自定义应用程序和插件。此外,当通过管理员安装时,第三方插件将存储在插件文件夹中。

也可以使用 Composer 安装第 3 方插件,在这种情况下,它们当然只会显示在顶级供应商文件夹中。

我注意到一些开发人员的常见做法是将他们自己的自定义插件或第三方插件放在 static-plugins 文件夹中,然后 composer require 这些插件。

这种做法有什么特殊的原因或好处吗?只是将代码保留在自定义/插件中吗?

最佳答案

正如您已经指出的,stated-plugins 适用于项目特定的插件,因此您的 插件,而 plugins 适用于从社区获取的插件店铺。通过将您的插件放入static-plugins并要求它们与composer一起使用,它会让系统知道这些插件也是由composer管理的,因此无法从商店下载或更新。除此之外,将插件放入该目录主要是一种组织性但推荐的措施。

关于shopware6 - 商店软件 6 : What is the usage or benefit of the custom/static-plugins folder?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73567306/

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