コード例 #1
0
 /**
  * Add a user to an existing role.
  *
  * @param Role $role Existing role to be added to
  * @param int $subject_id Initialized user instance
  * @throws \RBAC\Exception\ValidationError
  * @return bool Database execution success status
  */
 public function roleAddSubjectId(Role $role, $subject_id)
 {
     return $this->storage->roleAddSubjectId($role, $subject_id);
 }