PHP-作曲家在自定义路径中安装软件包或模块?
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了PHP-作曲家在自定义路径中安装软件包或模块?,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1918字,纯文字阅读大概需要3分钟。
内容图文
我尝试在特定路径下使用作曲家安装Drupal模块,
我检查了这些链接,但无法弄清楚.
请检查一下,并告诉我什么地方错了,我该怎么办?
我想要什么?
Install the Signature field module in the
modules/patched
directory.
这是与此问题相关的我的composer.json文件的一部分.
"require": {
"composer/installers": "^1.0.24",
"drupal/signature_field": "^1.0@RC",
},
"installer-paths": {
"core": ["type:drupal-core"],
"modules/contrib/{$name}": ["type:drupal-module"],
"profiles/contrib/{$name}": ["type:drupal-profile"],
"themes/contrib/{$name}": ["type:drupal-theme"],
"drush/contrib/{$name}": ["type:drupal-drush"],
"modules/custom/{$name}": ["type:drupal-custom-module"],
"themes/custom/{$name}": ["type:drupal-custom-theme"],
"modules/patched/{$name}": ["type:drupal-patched-module"]
},
"patches": {
"drupal/signature_field": {
"Drupal Signature Field fix multi feilds": "modules/patched/signature_field/signature_field-2993223-08.patch"
}
}
},
最后,我进行了composer的安装和composer的更新,但是模块没有转移到我想要的文件夹中
解决方法:
也许这可能会有所帮助(注意其他事项):
{
"extra": {
"installer-paths": {
"modules/patched/{$name}": ["drupal/signature_field"],
"modules/patched/{$name}": ["another/package"]
}
}
}
可能会这样:
{
"extra": {
"installer-paths": {
"modules/patched/{$name}": ["drupal/signature_field"]
}
},
"extra": {
"installer-paths": {
"modules/patched/{$name}": ["drupal/another_module"]
}
}
}
要么
{
"extra": {
"installer-paths": {
"modules/patched/{$name}": ["drupal/signature_field"]
},
"installer-paths": {
"modules/patched/{$name}": ["drupal/another_module"]
}
}
}
也,
You cannot use this to change the path of any package. This is only
applicable to packages that require composer/installers and use a
custom type that it handles.
您也可以按类型输入group包裹:
{
"extra": {
"installer-paths": {
"your/custom/path/{$name}/": ["type:wordpress-plugin"]
}
}
}
或某些供应商:
{
"extra": {
"installer-paths": {
"your/custom/path/{$name}/": ["vendor:drupal"]
}
}
}
内容总结
以上是互联网集市为您收集整理的PHP-作曲家在自定义路径中安装软件包或模块?全部内容,希望文章能够帮你解决PHP-作曲家在自定义路径中安装软件包或模块?所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。