public function Client::__construct

Same name in this branch

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:

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Client.php, line 43

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) {
  $this->kernel = $kernel;
  parent::__construct($server, $history, $cookieJar);
  $this->followRedirects = false;
}