How to replace GroupList in 5.7 version

Permalink
I upgrade my site 5.6 version to 5.7.3 version. how to used getUserGroups and GroupList method in 5.7.3 version

[
$ui = UserInfo::getById($u->uID);
$usergroups = $u->getUserGroups();
$gl = new GroupList($ui, true);
$gArray = $gl->getGroupList();
.

I get the following error

Call to undefined method Concrete\Core\User\Group\GroupList::getGroupList()

View Replies:
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
"I upgrade my site 5.6 version to 5.7.3 version", how did you do that?
zianadir replied on at Permalink Reply
upgrade package one by one