Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. HttpKernelBrowser.php

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\HttpKernel

Code

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);
}
RSS feed
Powered by Drupal