蛋糕烘焙外壳脚本失败(在 cakephp2 => cakephp3 迁移后)



我目前正在2 => 3迁移应用程序的过程。

Exception: Shell class for "-working" could not be found. in [/Users/david/Sites/otherland/app/vendor/cakephp/cakephp/src/Console/ShellDispatcher.php, line 328]

当我查看给ShellDisPatcher的参数时,我会看到这一点:

Array
(
    [0] => /Users/david/Sites/otherland/app/bin/cake.php
    [1] => -working
    [2] => /Users/david/Sites/otherland/app
    [3] => bake
)

显然,索引1的参数是问题。我不是在积极地将" - 工程"键入外壳。我不知道这可能来自哪里。有人知道这可能起源于

问题是我尚未替换文件app/bin/cake(对于 app/bin/cake.bat的Windows用户)。从蛋糕2到3,这些文件的文件中有一些小变化,需要更换它们。(将它们放在这里https://github.com/cakephp/app/tree/master/bin)

编辑:cakephp升级-tool(https://github.com/cakephp/upgrade)具有一个任务(skeleton),该任务复制了上述文件等。我没有尝试过,但这似乎是解决问题的好方法。

最新更新