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