0

我为 cakephp 应用程序 3.4.x 自定义了 cakephp 应用程序控制台/installer.php 文件,并且我正在尝试将其升级到 3.7.1,但是,以下代码不再有效...

            $shell->dispatchShell([
                'command' => 'migrations migrate',
                'extra' => []
            ]);

它抛出以下错误

[Cake\Console\Exception\MissingShellException]
Shell class for "Migrations" could not be found. If you are trying to use a plugin shell, that was loaded via $this->addPlugin(), you may need to update bin/cake.php to match https://github.com/cakephp/app/tree/master/bin/cake.php

当我执行 bin/cake 迁移时,我得到

└──╼ bin/cake migrations
Migrations plugin, based on Phinx by Rob Morgan. 0.4.3

根据文档,它应该仍然可以工作,不是吗?

https://book.cakephp.org/3.0/en/console-and-shells/shells.html#invoking-other-shells-from-your-shell

任何想法为什么会发生这种情况?

4

0 回答 0