douzouchang7448 2017-12-26 20:08
浏览 57

在Composer更新后找不到Symfony AbstractController

I just ran a composer update and now when I try to access my website I get this error:

ClassNotFoundException in SecurityController.php line 28: Attempted to load class "AbstractController" from namespace "Symfony\Bundle\FrameworkBundle\Controller". Did you forget a "use" statement for another namespace?

When I go into vendor/friendsofsymfony/user-bundle/Controller/SecurityController.php even PHPStorm is now telling me "Undefined class AbstractController"...

What happened to "AbstractController" and how do I get my application to work again? I've searched online and found one person who had the same issue, but there's not fix. https://github.com/FriendsOfSymfony/FOSUserBundle/issues/2678

  • 写回答

1条回答 默认 最新

  • douan3414 2017-12-28 13:58
    关注

    I had the same problem. I solve it setting in composer.json the following line on require: "friendsofsymfony/user-bundle": "~2.0", after that I have done a composer update and that worked.

    评论

报告相同问题?

悬赏问题

  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作