Symfony - Voter always the same object received

烈酒焚心 提交于 2019-12-02 03:22:30
Pierre de LESPINAY

I noticed that the object received is in fact always NULL.
get_class(NULL) returns the current class.

And after days of search, I finally found where did that come from.

This is linked to the SonataAdmin RoleHandler isGranted() implementation. Yeah I was using my voters from a SonataAdmin bundle.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!