drtwqc3744 2018-08-13 07:47
浏览 103

清除缓存/编写器安装时出错 - 在kernel.php第33行中找不到SensioFrameworkExtraBundle

I face an issue since last Friday.

Everything was working fine on my project and then friday when deploying : after $> php bin/console cache:clear

My Symfony project doesn't work anymore :

i got this error :

Fatal error: Uncaught Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to load class "SensioFrameworkExtraBundle" from namespace "Sensio\Bundle\FrameworkExtraBundle".
Did you forget a "use" statement for another namespace? in /Users/dam/Development/Alara/rayflex/git/rayborn/src/Kernel.php:33
Stack trace:
#0 /Users/dam/Development/Alara/rayflex/git/rayborn/vendor/symfony/http-kernel/Kernel.php(492): App\Kernel->registerBundles()
#1 /Users/dam/Development/Alara/rayflex/git/rayborn/vendor/symfony/http-kernel/Kernel.php(132): Symfony\Component\HttpKernel\Kernel->initializeBundles()
#2 /Users/dam/Development/Alara/rayflex/git/rayborn/vendor/symfony/framework-bundle/Console/Application.php(64): Symfony\Component\HttpKernel\Kernel->boot()
#3 /Users/dam/Development/Alara/rayflex/git/rayborn/vendor/symfony/console/Application.php(148): Symfony\Bundle\FrameworkBundle\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /Users/dam/ in /Users/dam/Development/Alara/rayflex/git/rayborn/src/Kernel.php on line 33
  • I tried to delete my vendor and reinstall same error
  • I tried a composer selfupdate && composer update
  • I Also tried to put the use in kernel.php...

Still nothing

I took an old tag of my project who was working fine Some month back :: Same error..

I am banging my head on my desk, going to be a hole..

Thanks for your respons.

  • 写回答

1条回答 默认 最新

  • dsuw85815 2018-08-13 13:07
    关注

    I have Fix my problem on reinstalling SenSio Bundle

    $ composer require sensio/framework-extra-bundle
    

    I can't explain why, it was already installed and in the composer.json before ..

    Thank for your help !

    评论

报告相同问题?

悬赏问题

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