0

我正在尝试使用 MopaBootstrapBundle 将 Twitter Bootstrap 与我的 Symfony2 项目集成,并且我正在使用 composer 来管理我的供应商库。

我遇到的最初问题是 mopa/bootstrap-bundle 需要 composer-bridge,所以我按照这里的说明进行操作https://github.com/phiamo/MopaBootstrapBundle/issues/345

但是我仍然在我的日志中收到以下消息

我尝试将最低稳定性更改为 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"
}

}

4

1 回答 1

1

在与不同的组合进行了大约 6 到 8 个小时的战斗后,它突然就开始工作了,所以我怀疑这可能是由于从我的盒子连接到 Github 或类似的问题引起的,但它工作正常,没有任何问题

于 2013-01-21T04:24:02.147 回答