改变composer.json为cake 3稳定

时间:2015-03-23 09:17:28

标签: composer-php cakephp-3.0

现在CakePHP 3有稳定的版本。我该怎么改变我的composer.json?我想只使用蛋糕的稳定更新。

"require": {
  "php": ">=5.4.16",
  "cakephp/cakephp": "3.0.*-dev",
  "cakephp/migrations": "dev-master",
  "cakephp/plugin-installer": "*",
  "cakephp/bake": "dev-master",
  "mobiledetect/mobiledetectlib": "2.*",
  "phpunit/phpunit": "*"
},
"require-dev": {
  "d11wtq/boris": "1.0.*",
  "cakephp/debug_kit": "3.0.*-dev",
  "cakephp/bake": "dev-master"
}

2 个答案:

答案 0 :(得分:1)

检查官方应用程序存储库中的那个:

https://github.com/cakephp/app/blob/master/composer.json

您可能还希望在上次发布之前替换ConsoleShell,因为它已得到改进:

https://github.com/cakephp/app/blob/master/src/Shell/ConsoleShell.php

答案 1 :(得分:0)

您需要更新cakephp条目和debug_kit条目,否则它们的依赖关系仍然停留在cake3-dev。这样做对我有用(只显示相关条目):

"要求":{   " cakephp / cakephp":" ~3.0"

}, " require-dev":{   " cakephp / debug_kit":" ~3.0" }