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

Breadcrumb

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

function AbstractBrowser::__construct

Parameters

array $server The server parameters (equivalent of $_SERVER):

4 calls to AbstractBrowser::__construct()
HttpBrowser::__construct in vendor/symfony/browser-kit/HttpBrowser.php
HttpBrowser::__construct in vendor/symfony/browser-kit/HttpBrowser.php
HttpKernelBrowser::__construct in vendor/symfony/http-kernel/HttpKernelBrowser.php
HttpKernelBrowser::__construct in vendor/symfony/http-kernel/HttpKernelBrowser.php
2 methods override AbstractBrowser::__construct()
HttpBrowser::__construct in vendor/symfony/browser-kit/HttpBrowser.php
HttpKernelBrowser::__construct in vendor/symfony/http-kernel/HttpKernelBrowser.php

File

vendor/symfony/browser-kit/AbstractBrowser.php, line 62

Class

AbstractBrowser
Simulates a browser.

Namespace

Symfony\Component\BrowserKit

Code

public function __construct(array $server = [], ?History $history = null, ?CookieJar $cookieJar = null) {
    $this->setServerParameters($server);
    $this->history = $history ?? new History();
    $this->cookieJar = $cookieJar ?? new CookieJar();
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal