php - 将 Symfony 项目从 3.2 升级到 3.4
问题描述
我正在尝试在 Windows 10 机器上升级 Symfony。当前版本是 3.2。我已将composer.json
软件包更新为"symfony/symfony": "3.4.*"
. 然后我运行composer update symfony/symfony
并收到以下错误消息:
The requested package symfony/symfony 3.4.* exists as symfony/symfony[v3.2.2] but these are rejected by your constraint.
任何想法可能是什么问题?谢谢!
这是composer.json
文件:
{
"name": "martin/editor",
"license": "proprietary",
"type": "project",
"autoload": {
"psr-4": {
"": "src/"
},
"classmap": [
"app/AppKernel.php",
"app/AppCache.php"
]
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"require": {
"php": ">=5.5.9",
"symfony/symfony": "3.4.*",
"doctrine/orm": "^2.5",
"doctrine/doctrine-bundle": "^1.6",
"doctrine/doctrine-cache-bundle": "^1.2",
"symfony/swiftmailer-bundle": "^2.3.10",
"symfony/monolog-bundle": "^3.0.2",
"symfony/polyfill-apcu": "^1.0",
"sensio/distribution-bundle": "^5.0",
"sensio/framework-extra-bundle": "^3.0.2",
"incenteev/composer-parameter-handler": "^2.0",
"mikehaertl/php-shellcommand": ">=1.2.4",
"phpoffice/phpspreadsheet": "*"
},
"require-dev": {
"sensio/generator-bundle": "^3.0",
"symfony/phpunit-bridge": "^3.0"
},
"scripts": {
"symfony-scripts": [
"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",
"Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
],
"post-install-cmd": [
"@symfony-scripts"
],
"post-update-cmd": [
"@symfony-scripts"
]
},
"extra": {
"symfony-app-dir": "app",
"symfony-bin-dir": "bin",
"symfony-var-dir": "var",
"symfony-web-dir": "web",
"symfony-tests-dir": "tests",
"symfony-assets-install": "relative",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
"branch-alias": null
},
"repositories": [{
"type": "composer",
"url": "https:\/\/www.phpclasses.org\/"
}, {
"packagist": false
}, {
"type": "vcs",
"url": "https://github.com/mikehaertl/php-shellcommand"
}, {
"type": "vcs",
"url": "https://github.com/PHPOffice/PhpSpreadsheet"
}, {
"type": "vcs",
"url": "https://github.com/php-fig/simple-cache"
}
]
}
解决方案
推荐阅读
- apache-spark - Spark DataFrame(或DataSet)中两列的链接值
- vue.js - Vee Validate 阻止我的组件运行,errors.first 故障
- javascript - 如何从反应组件更改快速 API url
- r - 如何在 ggplot2 中使用线图和误差线绘制多个连续变量与因子的关系?
- r - 我无法使用 rbind 和 do.call 访问列表列表中的第三个列表
- php - 如何指定 wordpress 在默认位置以外的特定位置查找 wp-content 目录?
- c# - 为所有出现的 Rule().NotEmpty() 设置默认错误代码;
- c# - Ef Core,不同数据类型的多对多连接表复合键
- javascript - 对显示“不允许加载本地资源”错误的字符串使用 IndexOf() 方法
- javascript - 用js搜索字母的字符串