【发布时间】:2018-05-10 04:09:38
【问题描述】:
我目前正在从 2 => 3 迁移应用程序。每当我运行 cake/bake 时都会收到此错误:
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 的参数是问题所在。我没有主动在 shell 中输入“-working”。我不知道这可能来自哪里。有谁知道这可能起源于哪里
【问题讨论】:
标签: shell cakephp cakephp-3.0