Basho\Riak\Node\Config::setUser PHP 메소드

setUser() 공개 메소드

public setUser ( string $user )
$user string
    public function setUser($user)
    {
        $this->user = $user;
    }

Usage Example

예제 #1
0
 /**
  * usingPamAuthentication
  *
  * Build nodes with PAM authentication
  *
  * User authentication and access rules are only available in Riak versions 2 and above. To use this feature, TSL
  * is required to communicate with your Riak nodes.
  *
  * @param $user
  *
  * @return $this
  */
 public function usingPamAuthentication($user)
 {
     $this->config->setUser($user);
     $this->config->setAuth(true);
     return $this;
 }