You are here

public function Client::setMaxRedirects in Zircon Profile 8

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

Sets the maximum number of requests that crawler can follow.

Parameters

int $maxRedirects:

File

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

Class

Client
Client simulates a browser.

Namespace

Symfony\Component\BrowserKit

Code

public function setMaxRedirects($maxRedirects) {
  $this->maxRedirects = $maxRedirects < 0 ? -1 : $maxRedirects;
  $this->followRedirects = -1 != $this->maxRedirects;
}