class History
History.
protected | $stack | ||
protected | $position |
clear() Clears the history. | ||
add(Request $request) Adds a Request to the history. | ||
bool | isEmpty() Returns true if the history is empty. | |
Request | back() Goes back in the history. | |
Request | forward() Goes forward in the history. | |
Request | current() Returns the current element in the history. |
Clears the history.
Adds a Request to the history.
Request | $request |
Returns true if the history is empty.
bool | true if the history is empty, false otherwise |
Goes back in the history.
Request | A Request instance |
LogicException | if the stack is already on the first page |
Goes forward in the history.
Request | A Request instance |
LogicException | if the stack is already on the last page |
Returns the current element in the history.
Request | A Request instance |
LogicException | if the stack is empty |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/BrowserKit/History.html