如何将CakePHP回滚到3.2到3.0 [英] How to rollback cakePHP 3.2 to 3.0

查看:123
本文介绍了如何将CakePHP回滚到3.2到3.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在cakePHP 3.0中完成了我的项目.通过更新作曲家,我的项目转换为cakePHP 3.2.我想从3.2回滚到3.0.我也尝试了回滚选项,这也无法正常工作.如何将3.2回滚到3.0?

I did my project in cakePHP 3.0. By updating the composer my project converted into cakePHP 3.2. I want to rollback from 3.2 to 3.0. I tried rollback options too,that is also not working. How to rollback 3.2 to 3.0 ?

推荐答案

composer支持的rollback命令是针对composer本身的,即它将您的composer安装回滚到较早的版本,而不是已安装的任何版本通过作曲家.

The rollback command supporty by composer is for the composer itself, ie it rolls back your composer installation to an earlier version, not anything that might have been installed via composer.

要更改cakephp/cakephp依赖项的版本,只需要求新版本的版本约束与3.1及更高版本不匹配,因此,在您的情况下,如果要切换回3.0.x分支,您可以直接运行

To change the version of the cakephp/cakephp dependency, simply require the new version with a version constraint that doesn't match 3.1 and above, so in your case, if you want to switch back to the 3.0.x branch, you could just run

$ composer require cakephp/cakephp:"~3.0.0"

~3.0.0约束将匹配>= 3.0.0 && < 3.1.0.有关受支持的版本限制的更多信息,请参见 Composer Docs> Versions .作曲家.

The ~3.0.0 constraint will match >= 3.0.0 && < 3.1.0. See Composer Docs > Versions for more information on version constraints supported by composer.

但是,您可能会遇到与其他依赖项(如cakephp/debug_kitcakephp/bake)的冲突,这些冲突需要手动解决,例如通过降级甚至临时

However, You may encounter conflicts with other dependencies like cakephp/debug_kit or cakephp/bake, which need to be solved manually, for example by downgrading or even temporarily removing them, as they may have been upgraded too and require a newer cakephp/cakephp version themselves!

这篇关于如何将CakePHP回滚到3.2到3.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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