gpt4 book ai didi

symfony - FOSUserBundle/RegistrationController 参数太少

转载 作者:行者123 更新时间:2023-12-02 05:08:57 25 4
gpt4 key购买 nike

我是 symfony 新用户。今天我将 symfony 更新到了 3.4 版本。我已经安装了 friendsofsymfony/user-bundle "~2.0@dev"

当我进入注册页面http://example.com/app_dev.php/register/我收到此消息:

Type error: Too few arguments to function FOS\UserBundle\Controller\RegistrationController::__construct(), 0 passed in /var/www/beta.jostratennis.com/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Controller/ControllerResolver.php on line 195 and exactly 4 expected

friendsofsymfony/user-bundle dev-master 5884948

哪里可以找到解决方案?

最佳答案

在您的composer.json中锁定您的fos用户包版本

"friendsofsymfony/user-bundle": "2.0.*" 
# instead of
"friendsofsymfony/user-bundle": "~2.0@dev"

之后,您可以再次更新依赖项,运行

composer update

关于symfony - FOSUserBundle/RegistrationController 参数太少,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48085331/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com