我刚刚转到Symfony 2.1,我无法理解,如何在Composer中安装自己的软件包?
在2.0.x的deps中非常容易:
[MyOwnBundle] git=git@git.weboshin.ru:weboshin_cms_bundle.git target=/bundles/My/OwnBundle
之后,我刚刚触发了bin / vendor更新,就是这样!
但现在没有deps文件,我应该用Composer做所有事情.请给我任何提示.
我找到了答案.
// 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"
}