You are here

public function Client::getClient in Zircon Profile 8

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

File

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

Class

Client
Client.

Namespace

Goutte

Code

public function getClient() {
  if (!$this->client) {
    $this->client = new GuzzleClient(array(
      'defaults' => array(
        'allow_redirects' => false,
        'cookies' => true,
      ),
    ));
  }
  return $this->client;
}