You are here

public function Client::insulate in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/browser-kit/Client.php \Symfony\Component\BrowserKit\Client::insulate()

Sets the insulated flag.

Parameters

bool $insulated Whether to insulate the requests or not:

Throws

\RuntimeException When Symfony Process Component is not installed

File

vendor/symfony/browser-kit/Client.php, line 89

Class

Client
Client simulates a browser.

Namespace

Symfony\Component\BrowserKit

Code

public function insulate($insulated = true) {
  if ($insulated && !class_exists('Symfony\\Component\\Process\\Process')) {
    throw new \RuntimeException('Unable to isolate requests as the Symfony Process Component is not installed.');
  }
  $this->insulated = (bool) $insulated;
}