You are here

public function History::back in Zircon Profile 8

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

Goes back in the history.

Return value

Request A Request instance

Throws

\LogicException if the stack is already on the first page

File

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

Class

History
History.

Namespace

Symfony\Component\BrowserKit

Code

public function back() {
  if ($this->position < 1) {
    throw new \LogicException('You are already on the first page.');
  }
  return clone $this->stack[--$this->position];
}