You are here

public function Client::setAuth in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/fabpot/goutte/Goutte/Client.php \Goutte\Client::setAuth()

File

vendor/fabpot/goutte/Goutte/Client.php, line 65

Class

Client
Client.

Namespace

Goutte

Code

public function setAuth($user, $password = '', $type = 'basic') {
  $this->auth = array(
    $user,
    $password,
    $type,
  );
  return $this;
}