symfony - symfony2.8 UserProvider‘s refreshUser() method seems superfluous -


i used symfony 2.8, found userprovider’s refreshuser() method has no purpose, since when update current user's role, permissions won't change unless logout , login again. not understand use of method.

such when add current user's role role_admin, dump($this->get('security.context')->gettoken()) in controller. found token's roles does't change. dump info dump info


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -