我创建了一个新的 Symfony 项目,并且不断收到此消息“DoctrineMigrationsBundle 需要启用 DoctrineBundle”。错误并且无法摆脱它。显然我是这个星球上唯一一个收到此错误的人,因为谷歌并没有太大帮助。
在 config/bundles.php 文件中,我有以下内容应该“启用”DoctrineBundle,但我缺少一些东西并且无法告诉它是什么。
return [
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true],
];
Run Code Online (Sandbox Code Playgroud)