我正在尝试将我的项目升级到最新的Symfony。
3.1到3.2是完美无缺的。
现在已经一个小时了,我正试图升级到3.3,我仍然不知道为什么它没有发生。
最奇怪的是,在运行composer update命令时,我没有任何错误消息,但是symfony版本没有改变。我检查了调试栏和bin/console --version命令,仍然是3.2.10。
bin/console --version
Symfony 3.2.10 (kernel: app, env: dev, debug: true)我想,我的composer.json是正确指定的:
"require" : {
"php" : ">=7.0",
"symfony/symfony" : "3.3.*",
"doctrine/orm" : "^2.5",
"doctrine/doctrine-bundle" : "^1.6",
"doctrine/doctrine-cache-bundle" : "^1.2",
"symfony/swiftmailer-bundle" : "^2.3",
"symfony/monolog-bundle" : "^2.8",
"symfony/polyfill-apcu" : "^1.0",
"sensio/distribution-bundle" : "^5.0",
"sensio/framework-extra-bundle" : "^3.0.2",
"incenteev/composer-parameter-handler" : "^2.0",
"symfony/assetic-bundle" : "^2",
"friendsofsymfony/user-bundle" : "~2.0",
"knplabs/knp-menu-bundle" : "^2.0",
"egeloen/ckeditor-bundle" : "^4.0",
"twig/twig" : "@stable",
"twig/extensions" : "^1.4",
"stof/doctrine-extensions-bundle" : "^1.2",
"friendsofsymfony/jsrouting-bundle" : "^1.6",
"yavin/symfony-form-tree" : "~1.0",
"cnerta/breadcrumb-bundle" : "2.1.*",
"symfony/security-acl" : "^v3",
"petrepatrasc/google-map-bundle" : "^2.3",
"debril/rss-atom-bundle" : "^3.0",
"beberlei/DoctrineExtensions" : "^1.0",
"symfony/http-kernel" : "~3.0",
"tilleuls/ovh-bundle" : "1.0.*",
"st/flagiconcss-bundle" : "~1.0",
"th3mouk/yahoo-weather-api" : "^1.0",
"jms/serializer-bundle" : "^1.2"
},以下是控制台输出:
composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
> Incenteev\ParameterHandler\ScriptHandler::buildParameters
Updating the "app/config/parameters.yml" file
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache
// Clearing the cache for the dev environment with debug
// And the rest is usual assetic and cache clear stuff我还试着只升级symfony/symfony,没什么区别。
有人有线索吗?
谢谢你的时间和帮助。
发布于 2017-07-04 09:58:51
问题可能在于您的依赖关系之一需要更低的版本。
您可以使用:
composer why symfony/symfony 3.2.*找出它是哪一种依赖性。那么,您可能必须首先更新该依赖项。
为了确保一切正常运行,您应该一个接一个地使用以下方法:
composer require dependency/dep ?其中?是新版本约束。然后运行您的测试,然后对symfony做同样的操作:
composer update symfony/symfonyOP编辑:
问题是由于Eclipse不再将composer.json文件写入磁盘,所以不要问我为什么。
但是,我将这个答案标记为解决方案,因为composer why命令将我推向正确的方向。
https://stackoverflow.com/questions/44902640
复制相似问题