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

Breadcrumb

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

function AbstractBrowser::insulate

Sets the insulated flag.

Throws

LogicException When Symfony Process Component is not installed

File

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

Class

AbstractBrowser
Simulates a browser.

Namespace

Symfony\Component\BrowserKit

Code

public function insulate(bool $insulated = true) : void {
    if ($insulated && !class_exists(\Symfony\Component\Process\Process::class)) {
        throw new LogicException('Unable to isolate requests as the Symfony Process Component is not installed. Try running "composer require symfony/process".');
    }
    $this->insulated = $insulated;
}

API Navigation

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