新的 symfony 骨架网站安装后 DoctrineParamConverter 错误 [英] DoctrineParamConverter error after fresh symfony skeleton website installation
问题描述
我安装了 symfony 5.1,但是当我运行应用程序时出现以下错误.
I installed symfony 5.1 but when I run application following error occured.
传递给 Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter::__construct() 的参数 1 必须是 Doctrine\Common\Persistence\ManagerRegistry 的实例或 null,Doctrine\Bundle\DoctrineBundle\Registry 的实例
Argument 1 passed to Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter::__construct() must be an instance of Doctrine\Common\Persistence\ManagerRegistry or null, instance of Doctrine\Bundle\DoctrineBundle\Registry
推荐答案
您只需要使用composer upgrade"命令升级您的作曲家.
you just need to upgrade your composer with command "composer upgrade".
尝试并提供反馈.
这篇关于新的 symfony 骨架网站安装后 DoctrineParamConverter 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!