RuntimeException更新中止,为什么?怎么了?

时间:2013-07-27 16:59:06

标签: symfony composer-php symfony-2.3

最近我将FOSUserBundle添加到我的项目中如下(composer.json):

{
    "name": "symfony/framework-standard-edition",
    "license": "MIT",
    "type": "project",
    "description": "The \"Symfony Standard Edition\" distribution",
    "autoload": {
        "psr-0": { "": "src/" }
    },
    "require": {
        "php": ">=5.3.3",
        "symfony/symfony": "2.3.*",
        "doctrine/orm": ">=2.2.3,<2.4-dev",
        "doctrine/doctrine-bundle": "1.2.*",
        "twig/extensions": "1.0.*",
        "symfony/assetic-bundle": "2.3.*",
        "symfony/swiftmailer-bundle": "2.3.*",
        "symfony/monolog-bundle": "2.3.*",
        "sensio/distribution-bundle": "2.3.*",
        "sensio/framework-extra-bundle": "2.3.*",
        "sensio/generator-bundle": "2.3.*",
        "incenteev/composer-parameter-handler": "~2.0",
        "cedriclombardot/admingenerator-generator-bundle": "2.3.*@dev",
        "friendsofsymfony/user-bundle": "~2.0@dev"
    },
    "scripts": {
        "post-install-cmd": [
            "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
            "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": [
            "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
        ]
    },
    "config": {
        "bin-dir": "bin",
        "component-dir": "web/components"
    },
    "minimum-stability": "dev",
    "extra": {
        "symfony-app-dir": "app",
        "symfony-web-dir": "web",
        "incenteev-parameters": {
            "file": "app/config/parameters.yml"
        },
        "branch-alias": {
            "dev-master": "2.3-dev"
        }
    }
}

所以我执行任务:

[root@devserver nnplat]# composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
  - Updating cedriclombardot/admingenerator-generator-bundle dev-master (9aeb46f => c074e36)
    The package has modified files:
    M .travis.yml
    M AdmingeneratorGeneratorBundle.php
    M Builder/Admin/ActionsBuilder.php
    M Builder/Admin/ActionsBuilderAction.php
    M Builder/Admin/ActionsBuilderTemplate.php
    M Builder/Admin/BaseBuilder.php
    M Builder/Admin/FiltersBuilder.php
    M Builder/Admin/ListBuilder.php
    M Builder/Admin/NewBuilder.php
    M Builder/Admin/ShowBuilder.php
-10 more files modified, choose "v" to view the full list
    Discard changes [y,n,v,s,?]? n

  [RuntimeException]
  Update aborted

我应该写什么选项才能更新文件?我使用“n”来不丢弃更改,但后来得到错误,出了什么问题?

0 个答案:

没有答案