2018-01-10 15:52
浏览 97

SugarCRM 7.9 - 通过模块清单安装composer包?

I've built custom module for SugarCRM7, but I need to use custom libs (guzzlehttp and psr/http-message) which are not present in SugarCRM. Is there any way to add my own composer.json to installable package so the composer file would be executed after module install or maybe should I do it using manifest somehow?

I've tried to simply copy vendor files using copy in manifest.php but it doesn't seem to work and I need to execute it without comand line access.

I didn't find any word about composer in Sugar dev docs, so I'm asking here. Any help would be appreciated. thanks!

图片转代码服务由CSDN问答提供 功能建议

我为SugarCRM7构建了自定义模块,但我需要使用自定义库(guzzlehttp和psr / http-message) )SugarCRM中没有。 有没有办法将我自己的composer.json添加到可安装的软件包中,以便在安装模块后执行composer文件,或者我应该以某种方式使用清单执行它?

我试过 只需使用manifest.php中的副本复制供应商文件,但它似乎不起作用,我需要在没有命令行访问的情况下执行它。

我没有找到关于composer的任何单词 Sugar dev docs,所以我在这里问。 任何帮助,将不胜感激。 谢谢!

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

  • dsbj66959 2018-01-11 08:37

    The way to go is packaging all files in the installable package. But there is a problem with too many files due to the http post size. So if some of your files are missing try zipping the lib and unzip via a post_install script.

    解决 无用
    打赏 举报

相关推荐 更多相似问题