예제 #1
0
 /**
  * Adds a role to the user.
  *
  * @param string $role
  */
 public function addRole($role)
 {
     $role = strtoupper($role);
     if ($role === static::ROLE_DEFAULT) {
         return;
     }
     $this->user->addRole($role);
 }