猿问

Symofny 5 ParamConverter 更新后损坏

最后的作曲家更新完全破坏了我基于 Symfony5 的项目:

php.CRITICAL: Uncaught Error: 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 given

根据 Symfony 文档,我很久以前就已经将 Doctrine\Bundle\DoctrineBundle\Registry 的所有引用更新为 Doctrine\Common\Persistence\ManagerRegistry

任何帮助,将不胜感激

已安装的软件包列表:

beberlei/doctrineextensions          v1.2.6   

cmen/google-charts-bundle            3.2.1    

craue/formflow-bundle                3.3.2    

doctrine/annotations                 1.10.3   

doctrine/cache                       1.10.1   

doctrine/collections                 1.6.5    

doctrine/common                      2.13.3   

doctrine/data-fixtures               1.4.3    

doctrine/dbal                        2.10.2   

doctrine/doctrine-bundle             2.1.0    

doctrine/doctrine-fixtures-bundle    3.3.1    

doctrine/event-manager               1.1.0    

doctrine/inflector                   1.4.3    

doctrine/instantiator                1.3.1    

doctrine/lexer                       1.2.1    

doctrine/orm                         v2.7.3   

doctrine/persistence                 1.3.7    

doctrine/reflection                  1.2.1    

doctrine/sql-formatter               1.1.0    

easycorp/easyadmin-bundle            v2.3.9   

egulias/email-validator              2.1.18   

friendsofsymfony/ckeditor-bundle     2.2.0    

friendsofsymfony/jsrouting-bundle    2.6.0    

guzzlehttp/guzzle                    6.5.5    

guzzlehttp/promises                  v1.3.1   

guzzlehttp/psr7                      1.6.1    

helios-ag/fm-elfinder-bundle         10.0.4   

incenteev/composer-parameter-handler v2.1.4   


隔江千里
浏览 148回答 2
2回答

小唯快跑啊

同样的事情也发生在我身上。只需运行命令composer update

慕工程0101907

将系统上的 Php 版本更新到 7.4运行作曲家升级
随时随地看视频慕课网APP
我要回答