private function updateRights(Group $group, array $config)
    {
        $securityIdentity = new UserSecurityIdentity($group->getObjectIdentifier(), Group::class);

        foreach ($config as $object => $rights) {
            $methodName = sprintf('add%sRights', ucfirst($object));
            if (method_exists($this, $methodName)) {
                call_user_func_array([$this, $methodName], [$rights, $securityIdentity]);
            }
        }
    }
private function updateRights(Group $group, array $config)
    {
        $securityIdentity = new UserSecurityIdentity($group->getObjectIdentifier(), Group::class);

        foreach ($config as $object => $rights) {
            $methodName = sprintf('add%sRights', ucfirst($object));
            if (method_exists($this, $methodName)) {
                call_user_func_array([$this, $methodName], [$rights, $securityIdentity]);
            }
        }
    }
private function updateRights ( Group $ group , array $ config ) { $ securityIdentity = new UserSecurityIdentity ( $ group -> getObjectIdentifier ( ) , Group :: class ) ; foreach ( $ config as $ object => $ rights ) { $ methodName = sprintf ( 'add%sRights' , ucfirst ( $ object ) ) ; if ( method_exists ( $ this , $ methodName ) ) { call_user_func_array ( [ $ this , $ methodName ] , [ $ rights , $ securityIdentity ] ) ; } } }
Updates rights associated to a group

@param Group $group
@param array $config
Updates rights associated to a group