我刚刚转到Symfony 2.1,我无法理解,如何在Composer中安装自己的软件包?
在2.0.x的deps中非常容易:
[MyOwnBundle] git=git@git.weboshin.ru:weboshin_cms_bundle.git target=/bundles/My/OwnBundle
之后,我刚刚触发了bin / vendor更新,就是这样!
我找到了答案.
原文链接:https://www.f2er.com/php/135422.html// my_project/compose.json: { "repositories": [ { "type": "vcs","url": "own_repository_url" } ],// ... "require": { // ... "own/bundle": "dev-master" } },
// own_repository/own_bundle/compose.json: { "name": "own/bundle" }