You are here

public function History::add in Zircon Profile 8

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

Adds a Request to the history.

Parameters

Request $request A Request instance:

File

vendor/symfony/browser-kit/History.php, line 38

Class

History
History.

Namespace

Symfony\Component\BrowserKit

Code

public function add(Request $request) {
  $this->stack = array_slice($this->stack, 0, $this->position + 1);
  $this->stack[] = clone $request;
  $this->position = count($this->stack) - 1;
}