我想在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