新的 symfony 骨架网站安装后 DoctrineParamConverter 错误 [英] DoctrineParamConverter error after fresh symfony skeleton website installation

查看:23
本文介绍了新的 symfony 骨架网站安装后 DoctrineParamConverter 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆