function HttpKernelBrowser::__construct
Parameters
array $server The server parameters (equivalent of $_SERVER):
Overrides AbstractBrowser::__construct
File
-
vendor/
symfony/ http-kernel/ HttpKernelBrowser.php, line 37
Class
- HttpKernelBrowser
- Simulates a browser and makes requests to an HttpKernel instance.
Namespace
Symfony\Component\HttpKernelCode
public function __construct(HttpKernelInterface $kernel, array $server = [], ?History $history = null, ?CookieJar $cookieJar = null) {
// These class properties must be set before calling the parent constructor, as it may depend on it.
$this->followRedirects = false;
parent::__construct($server, $history, $cookieJar);
}