我想在Bundle中使用一个Bundle,但不知何故它是failig。如何正确地声明捆绑包中另一个捆绑软件的依赖关系?
"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.
第二库是从https: //github.com/digitalpioneers/pheanstalk或在https://github.com/drymek/PheanstalkBundle? –
哎呦对不起drymek/PheanstalkBundle ...现在纠正它;) – Senad