public function getManagers(Workspace $workspace)
    {
        $roleManager = $this->roleManager->getManagerRole($workspace);

        return $this->userRepo->findUsersByRolesIncludingGroups([$roleManager]);
    }
public function getManagers(Workspace $workspace)
    {
        $roleManager = $this->roleManager->getManagerRole($workspace);

        return $this->userRepo->findUsersByRolesIncludingGroups([$roleManager]);
    }
public function getManagers ( Workspace $ workspace ) { $ roleManager = $ this -> roleManager -> getManagerRole ( $ workspace ) ; return $ this -> userRepo -> findUsersByRolesIncludingGroups ( [ $ roleManager ] ) ; }
Retrieves the managers list for a workspace.

@param Workspace $workspace

@return User[]
Retrieves the managers list for a workspace .