我正在尝试使用 MopaBootstrapBundle 将 Twitter Bootstrap 与我的 Symfony2 项目集成,并且我正在使用 composer 来管理我的供应商库。
我遇到的最初问题是 mopa/bootstrap-bundle 需要 composer-bridge,所以我按照这里的说明进行操作https://github.com/phiamo/MopaBootstrapBundle/issues/345
但是我仍然在我的日志中收到以下消息
安装 mopa/composer-bridge (dev-master master) 克隆 master
[RuntimeException] 无法通过 git、https 和 http 协议克隆http://github.com/phiamo/mopacomposerbridge.git,正在中止。
git://github.com/phiamo/mopacomposerbridge.git
致命:远程错误:找不到存储库。
我尝试将最低稳定性更改为 dev 没有成功,但是我可以通过浏览器访问文件但不能通过命令行访问文件,并且已经安装了其他软件包。
更新:下面的完整 composer.json
{
"name": "symfony/framework-standard-edition",
"description": "The \"Symfony Standard Edition\" distribution",
"autoload": {
"psr-0": { "": "src/" }
},
"require": {
"php": ">=5.3.3",
"symfony/symfony": "2.1.*",
"doctrine/orm": ">=2.2.3,<2.4-dev",
"doctrine/doctrine-bundle": "1.0.*",
"twig/extensions": "1.0.*@dev",
"symfony/assetic-bundle": "2.1.*",
"symfony/swiftmailer-bundle": "2.1.*",
"symfony/monolog-bundle": "2.1.*",
"sensio/distribution-bundle": "2.1.*",
"sensio/framework-extra-bundle": "2.1.*",
"sensio/generator-bundle": "2.1.*",
"jms/security-extra-bundle": "1.2.*",
"jms/di-extra-bundle": "1.1.*",
"kriswallsmith/assetic": "1.1.*@dev",
"twitter/bootstrap": "dev-master",
"knplabs/knp-paginator-bundle": "dev-master",
"knplabs/knp-menu-bundle": "*",
"craue/formflow-bundle": "dev-master",
"jlong/sass-twitter-bootstrap": "dev-master"
},
"repositories": [
{
"type": "package",
"package": {
"name": "mopa/composer-bridge",
"version": "dev-master",
"source": {
"url": "https://github.com/phiamo/mopacomposerbridge.git",
"type": "git",
"reference": "master"
},
"dist": {
"url": "https://github.com/phiamo/mopacomposerbridge/zipball/master",
"type": "zip"
}
}
},
{
"type":"package",
"package": {
"version":"dev-master",
"name":"jlong/sass-twitter-bootstrap",
"source": {
"url":"https://github.com/jlong/sass-twitter-bootstrap.git",
"type":"git",
"reference":"master"
},
"dist": {
"url":"https://github.com/jlong/sass-twitter-bootstrap/archive/master",
"type":"zip"
}
}
}
],
"scripts": {
"post-install-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
],
"post-update-cmd": [
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
]
},
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web"
}
}