首页 文章

Symfony 2无法加载AuthenticatedVoter

提问于
浏览
1

我将我的Sf2项目的位置从localhost更改为服务器 . 在我的机器上所有工作正常但在服务器上我得到日志:

request.CRITICAL:未捕获的PHP异常Symfony \ Component \ Debug \ Exception \ ClassNotFoundException:“尝试从命名空间”Symfony \ Component \ Security \ Core \ Authorization \ Voter“加载类”AuthenticatedVoter“ . 您是否忘记了”使用“语句另一个命名空间?“ at /var/www/vhosts/27/167865/webspace/httpdocs/app/cache/prod/appProdProjectContainer.php line 1176

这个问题有什么意义?

1 回答

  • 0

    尝试清除缓存

    php app/console cache:clear
    
    php app/console cache:clear --env=prod
    

相关问题