You are here

public function Client::__construct in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/http-kernel/Client.php \Symfony\Component\HttpKernel\Client::__construct()
  2. 8 vendor/symfony/browser-kit/Client.php \Symfony\Component\BrowserKit\Client::__construct()
  3. 8 vendor/guzzlehttp/guzzle/src/Client.php \GuzzleHttp\Client::__construct()
Same name and namespace in other branches
  1. 8.0 vendor/symfony/browser-kit/Client.php \Symfony\Component\BrowserKit\Client::__construct()

Constructor.

Parameters

array $server The server parameters (equivalent of $_SERVER):

History $history A History instance to store the browser history:

CookieJar $cookieJar A CookieJar instance to store the cookies:

1 call to Client::__construct()
Client::__construct in vendor/symfony/http-kernel/Client.php
Constructor.
1 method overrides Client::__construct()
Client::__construct in vendor/symfony/http-kernel/Client.php
Constructor.

File

vendor/symfony/browser-kit/Client.php, line 54

Class

Client
Client simulates a browser.

Namespace

Symfony\Component\BrowserKit

Code

public function __construct(array $server = array(), History $history = null, CookieJar $cookieJar = null) {
  $this
    ->setServerParameters($server);
  $this->history = $history ?: new History();
  $this->cookieJar = $cookieJar ?: new CookieJar();
}