我已经开始在Symfony2.4.1上进行应用程序开发.但后来决定回到Symfony2.3.9,因为它有长期支持.是否有降级程序(在Google上没有运气),或者我必须下载2.3.9并将所有代码推送到那里?
我刚刚设法将我的Symfony 2.4.1降级到2.3.9.
原文链接:https://www.f2er.com/php/132204.html1)更新composer.json
删除以下行:
"symfony/symfony": "~2.4","doctrine/orm": "~2.2,>=2.2.3","doctrine/doctrine-bundle": "~1.2","twig/extensions": "~1.0","symfony/assetic-bundle": "~2.3","symfony/swiftmailer-bundle": "~2.3","symfony/monolog-bundle": "~2.4","sensio/distribution-bundle": "~2.3","sensio/framework-extra-bundle": "~3.0","sensio/generator-bundle": "~2.3",
"symfony/symfony": "2.3.*","doctrine/orm": ">=2.2.3,<2.4-dev","doctrine/doctrine-bundle": "1.2.*","twig/extensions": "1.0.*","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.*",
2)更新monolog配置
注释(使用#)或删除app / config / config_dev.yml中的以下行:
console: type: console bubble: false
并在app / config / config_prod.yml中执行相同的操作:
console: type: console
这些配置选项在2.3.*中不可用,因此如果不删除它们会导致错误.
3)运行作曲家
PHP composer.phar update
4)清除缓存(旧方式)
更新作曲家后,我无法通过app / console清除缓存(它返回了一个例外).
相反,我不得不删除app / cache /中的dev和prod文件夹.
5)享受LTS!
长期支持总是很好:)