You are here

protected function Client::requestFromRequest in Zircon Profile 8

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

Makes a request from a Request object directly.

Parameters

Request $request A Request instance:

bool $changeHistory Whether to update the history or not (only used internally for back(), forward(), and reload()):

Return value

Crawler

3 calls to Client::requestFromRequest()
Client::back in vendor/symfony/browser-kit/Client.php
Goes back in the browser history.
Client::forward in vendor/symfony/browser-kit/Client.php
Goes forward in the browser history.
Client::reload in vendor/symfony/browser-kit/Client.php
Reloads the current browser.

File

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

Class

Client
Client simulates a browser.

Namespace

Symfony\Component\BrowserKit

Code

protected function requestFromRequest(Request $request, $changeHistory = true) {
  return $this
    ->request($request
    ->getMethod(), $request
    ->getUri(), $request
    ->getParameters(), $request
    ->getFiles(), $request
    ->getServer(), $request
    ->getContent(), $changeHistory);
}