public function Client::__construct in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/symfony/http-kernel/Client.php \Symfony\Component\HttpKernel\Client::__construct()
- 8.0 vendor/symfony/browser-kit/Client.php \Symfony\Component\BrowserKit\Client::__construct()
- 8.0 vendor/guzzlehttp/guzzle/src/Client.php \GuzzleHttp\Client::__construct()
Same name and namespace in other branches
- 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\HttpKernelCode
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);
}