如何从symfony2.1.7升级到symfony2.3,找不到正确的composer.json依赖项?

时间:2013-06-14 21:13:01

标签: php upgrade symfony-2.1 symfony-2.3

我正在尝试从Symfony2.1.7升级到Symfony2.3稳定版本。我正在使用php composer.phar update但我面临的是包依赖问题。下面是我的composer.json和命令行输出的链接。

composer.jsoncommand line output

在查看输出后,我可以看到friendsofsymfony / user-bundle dependency

friendsofsymfony/user-bundle 2.0.x-dev requires symfony/security-bundle >=2.1,<2.3-dev

类似于sonata-project / user-bundle

- symfony/framework-standard-edition 2.3.x-dev requires sonata-project/user-bundle dev-master -> satisfiable by sonata-project/user-bundle[dev-master].
- sonata-project/user-bundle dev-master requires friendsofsymfony/user-bundle 1.3.* -> satisfiable by friendsofsymfony/user-bundle[1.3.x-dev, v1.3.0, v1.3.1, v1.3.2].
- sonata-project/user-bundle dev-master requires friendsofsymfony/user-bundle 1.3.* -> satisfiable by friendsofsymfony/user-bundle[1.3.x-dev, v1.3.0, v1.3.1, v1.3.2].

所以似乎它需要symfony/security-bundle >=2.1,<2.3-dev但是我希望它是2.3或更高版本就像我无法使用这些捆绑包进行升级。

有人可以指导我正确的方向,如果我错过了某些东西吗?

1 个答案:

答案 0 :(得分:5)

这是我的完整composer.json,它与Symfony version 2.3.2-DEV - app/dev/debug

一起使用
{
  "name": "symfony/framework-standard-edition",
  "description": "The \"Symfony Standard Edition\" distribution",
  "autoload": {
    "psr-0": {
      "": "src/"
    }
  },
  "require": {
    "php": ">=5.3.3",
    "symfony/symfony": "2.3.*@dev",
    "doctrine/orm": ">=2.2.3,<2.4-dev",

    "doctrine/doctrine-bundle": "1.2.*",
    "twig/extensions": "dev-master",

    "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",

    "jms/security-extra-bundle": "1.5.*",
    "jms/di-extra-bundle": "1.4.*",

    "kriswallsmith/assetic": "1.1.*@dev",

    "mlehner/gelf-php": "v1.0",

    "doctrine/migrations": "dev-master",
    "doctrine/doctrine-migrations-bundle": "dev-master",
    "stof/doctrine-extensions-bundle": "1.1.*@dev",
    "sensiolabs/doctrine-query-statistics-bundle": "1.0.*@dev",
    "jms/serializer-bundle": "0.9.x",

    "sonata-project/jquery-bundle": "1.8.*@dev",

    "sonata-project/exporter": "1.1.*",

    "sonata-project/admin-bundle": "2.2.*@dev",

    "sonata-project/cache-bundle": "2.1.*@dev",


    "sonata-project/intl-bundle": "2.2.*@dev",

    "sonata-project/doctrine-orm-admin-bundle": "2.2.*@dev",

    "sonata-project/cache-bundle": "dev-master",
    "sonata-project/easy-extends-bundle": "dev-master",

    "sonata-project/user-bundle": "2.2.*@dev",
    "sonata-project/block-bundle": "dev-master",
    "sonata-project/markitup-bundle": "dev-master",
    "sonata-project/formatter-bundle": "dev-master",

    "sonata-project/doctrine-extensions": "1.0.0",

    "friendsofsymfony/user-bundle": "1.3.*@dev",

    "knplabs/knp-paginator-bundle": "dev-master",

    "liip/monitor": "0.5.*@dev",
    "liip/monitor-bundle": "0.5.*@dev",

    "mockery/mockery": "0.7.2",

    "aws/aws-sdk-php": "2.0.3",

    "zendframework/zend-barcode": "2.0.*",
    "zendframework/zend-validator": "2.0.*",

    "egulias/listeners-debug-command-bundle": "*",

    "kylecannon/easycsv": "dev-master",
    "predis/predis": "0.8.*@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"
  },
  "minimum-stability": "stable",
  "extra": {
    "symfony-app-dir": "app",
    "symfony-web-dir": "web",
    "incenteev-parameters": {
      "file": "app/config/parameters.yml"
    },
    "branch-alias": {
      "dev-master": "2.2-dev",
      "dev-master": "2.3-dev"
    }
  }
}