Deployer\Server\Configuration::setAuthenticationMethod PHP Method

setAuthenticationMethod() public method

Set authentication method
public setAuthenticationMethod ( integer $authenticationMethod ) : Configuration
$authenticationMethod integer
return Configuration
    public function setAuthenticationMethod($authenticationMethod)
    {
        $this->authenticationMethod = $authenticationMethod;
        return $this;
    }

Usage Example

Beispiel #1
0
 /**
  * Using forward agent to authentication
  *
  * @return Builder
  */
 public function forwardAgent()
 {
     $this->config->setAuthenticationMethod(Configuration::AUTH_BY_AGENT);
     return $this;
 }