我试图从升级到2.1 2.3,但得到的作曲家错误:升级symfony的2.1至2.3 composer.json
Your requirements could not be resolved to an installable set of packages.
我想先升级只是框架无束通过更换“的symfony/symfony的” :“2.1。”与“symfony/symfony”:“2.3。”在composer.json中运行 php composer.phar更新symfony/symfony
它没有工作,所以我试图更新jms/security-extra - 捆绑第一,但它没有工作
php composer.phar update
也没有工作,我也teied“symfony/symfony”:“2.2。*”以及
这里我的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.*",
"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": "dev-master",
"jms/di-extra-bundle": "dev-master",
"jms/serializer-bundle": "dev-master",
"friendsofsymfony/user-bundle": "*",
"vich/geographical-bundle": "*",
"doctrine/doctrine-fixtures-bundle": "dev-master",
"friendsofsymfony/rest-bundle": "*",
"friendsofsymfony/comment-bundle": "*",
"friendsofsymfony/jsrouting-bundle": "1.0.3",
"servergrove/shell-alias-bundle": "dev-master",
"beberlei/DoctrineExtensions": "dev-master",
"stof/doctrine-extensions-bundle": "dev-master"
},
"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"
]
},
"minimum-stability": "dev",
"extra": {
"symfony-app-dir": "app",
"symfony-web-dir": "web",
"symfony-assets-install":"symlink"
}
}
您可以将您的文件进行比较(https://github.com/symfony/symfony-standard/blob/2.3/composer参考[Symfony的2.3 composer.json文件]以.json)。 Symfony 2.3需要''doctrine/doctrine-bundle“:”1.2。*“',但是你的文件只提供'”doctrine/doctrine-bundle“:”1.0。*“''。这可能是错误的根源。所以试着用参考Symfony 2.3文件来更新你的文件。 –
谢谢,我其实是在想这个,但是发现一个错误的文件,明天会测试 – jeff