php软件怎样安装路径,PHP-作曲家在自定义路径中安装软件包或模块?

我尝试在特定路径下使用作曲家安装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"]

}

}

}

标签:drupal-8,module,php

来源: https://codeday.me/bug/20191210/2105059.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值