public function setUserRolesFromKernelRequest(RequestEvent $event) | public function setUserRolesFromKernelRequest(RequestEvent $event) | ||||
{ | { | ||||
if (!$event->isMasterRequest()) { | |||||
if (!$event->isMainRequest()) { | |||||
return; | return; | ||||
} | } | ||||
if ($this->setUserRoles($event->getRequest())) { | if ($this->setUserRoles($event->getRequest())) { |