我正在尝试在 Bundle 中使用 Bundle,但不知何故它失败了。
"repositories": [
{
"type": "vcs",
"url": "https://github.com/myname/mybundle"
}
],
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.1.*",
(...)
"myname/mybundle": "*"
},
到目前为止,这似乎有效。但我不知道如何在“myname/mybundle”中声明另一个依赖项。
我在 myname/mybundle 的 composer.json 文件中尝试了以下操作,但没有一个起作用:(
"repositories": [
{
"type": "vcs",
"url": "url": "https://github.com/drymek/PheanstalkBundle"
}
],
"require": {
(...)
"drymek/PheanstalkBundle": "dev-master"
}
和
"repositories": [
{
"type": "package",
"package": {
"name": "drymek/PheanstalkBundle",
"version": "dev-master",
"source": {
"url": "https://github.com/drymek/PheanstalkBundle.git",
"type": "git",
"reference": "master"
}
}
}
],
"require": {
(...)
"drymek/PheanstalkBundle": "dev-master"
}
当我朗姆酒时,我composer.phar update
得到的只是
- myname/mybundle dev-master requires drymek/pheanstalkbundle dev-master -> no matching package found.