CakePHP 3.7.1 DispatchShell不执行迁移Shell

CakePHP 3.7.1 DispatchShell不执行迁移Shell,cakephp,cakephp-3.x,cakephp-3.7,Cakephp,Cakephp 3.x,Cakephp 3.7,我为cakephp应用程序3.4.x定制了cakephp应用程序控制台/installer.php文件,并尝试将其升级到3.7.1,但是,以下代码不再有效 $shell->dispatchShell([ 'command' => 'migrations migrate', 'extra' => [] ]); 它抛出以下错误 [Cake\Console\Excepti

我为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
根据文件,它应该还能用,不是吗


知道为什么会发生这种情况吗?

尝试使用
migrations.migrations
,即传递插件前缀。或者,尝试错误消息中建议的新命令运行程序。使用migrations.migrations成功了,谢谢。实际上,它成功了,是的,它已将迁移安装到数据库,但完成后仍会抛出错误。。这会停止执行…我必须在引导程序中显式加载迁移插件,它才能工作