将基于 Symfony 2.0 的项目更新到 Symfony 2.2 [英] Update project based on Symfony 2.0 to Symfony 2.2

查看:28
本文介绍了将基于 Symfony 2.0 的项目更新到 Symfony 2.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将我用 Symfony 2.0 编写的项目更新为 Symfony 2.2.

I am trying to update my project written in Symfony 2.0 into Symfony 2.2.

将源代码移入 2.2 项目以 config.ymlsecurity.yml 不兼容结束.

Moving source codes into 2.2 project ended with config.yml and security.yml incompatibiliy.

有没有办法将 Symfony 2.0 项目正确迁移到 Symfony 2.2 中?

Is there way how to properly migrate Symfony 2.0 project into Symfony 2.2?

推荐答案

最好等到 Symfony 2.3 再迁移.它将在五月的某个地方发布.这是第一个 LTS(长期支持)版本,意思是它维护了三年.所以:您不必担心 BC 中断 3 年!

It better to wait until Symfony 2.3 before migrating. It will be released somewhere in May. It's the first LTS (Long Time Support) release, meaning that it's maintained for three years. So: You don't have to worry about BC breaks for 3 years!

对于 Symfony 2.0 到 2.3 的迁移:您无能为力.阅读 UPGRADE-*.md 文件(它们存储在 symfony/symfony 包的根目录中)并修复代码中的任何内容.对普通用户很重要的每个 BC 中断都将放入这些 UPGRADE 文件中.

For the migrating of Symfony 2.0 to 2.3: There is nothing you can do. Read the UPGRADE-*.md files (which are stored in the root of the symfony/symfony package) and fix anything that is in their in your code. Every BC break that's important for normal users will be put in those UPGRADE files.

如果在修复 UPGRADE 文件中的所有内容后仍无法解决问题,则应查看包根目录中的 CHANGELOG.md 文件(例如 symfony/security 包).尝试找出已更改并导致代码中断的内容.

If you can't solve it after the fixing everything in the UPGRADE files, you should take a look at the CHANGELOG.md files in the root of the package (e.g. the symfony/security package). Try to find something that is changed and cause your code to break.

最后,如果你的脚本不能运行,有很多活跃的 Symfony2 用户正在等待帮助你.看看社区页面,找到你提问的地方.

Finally, if you don't get your script working, there are a lot of active Symfony2 users who are waiting to help you. Take a look at the community page and find your place to ask questions.

这篇关于将基于 Symfony 2.0 的项目更新到 Symfony 2.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆