You are here

public function Client::__construct in Zircon Profile 8.0

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

Constructor.

Parameters

HttpKernelInterface $kernel An HttpKernel instance:

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:

Overrides Client::__construct

File

vendor/symfony/http-kernel/Client.php, line 41

Class

Client
Client simulates a browser and makes requests to a Kernel object.

Namespace

Symfony\Component\HttpKernel

Code

public function __construct(HttpKernelInterface $kernel, array $server = array(), History $history = null, CookieJar $cookieJar = null) {

  // These class properties must be set before calling the parent constructor, as it may depend on it.
  $this->kernel = $kernel;
  $this->followRedirects = false;
  parent::__construct($server, $history, $cookieJar);
}