我正在将现有的 SS 安装从 3.0.4 升级到 3.1。我按照此处的说明进行升级:http ://doc.silverstripe.org/framework/en/installation/upgrading
现在我正在尝试通过 Composer 更新几个 SS 模块(特别是我尝试更新 Comments 和 DataObjectsAsPage)。我已将根目录中的 composer.json 文件更新为以下内容:
{
"name": "silverstripe/installer",
"description": "The SilverStripe Framework Installer",
"require": {
"php": ">=5.3.2",
"silverstripe/cms": "3.1.x-dev",
"silverstripe/framework": "3.1.x-dev",
"silverstripe-themes/simple": "*"
},
"require-dev": {
"silverstripe/docsviewer": "*",
"silverstripe/behat-extension": "*",
"silverstripe/buildtools": "*",
"phpunit/phpunit": "3.7.*"
},
"config": {
"process-timeout": 600
},
"minimum-stability": "dev",
"silverstripe/comments": "*",
"arambalakjian/dataobjectaspage": "*"
}
然后我导航到我的项目目录并运行以下两个
composer update silverstripe/comments
composer update arambalakjian/dataobjectaspage
尝试更新两个扩展时,我收到了同样的错误:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for silverstripe/cms 3.1.x-dev -> satisfiable by silverstripe/cms[3.1.x-dev].
- Can only install one of: silverstripe/cms[3.1.x-dev, 3.0.3].
- Installation request for silverstripe/cms == 3.0.3.0 -> satisfiable by silverstripe/cms[3.0.3].
如何通过 Composer 更新扩展?
谢谢你的帮助。