You are here

protected function Client::doRequest in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/http-kernel/Client.php \Symfony\Component\HttpKernel\Client::doRequest()
  2. 8 vendor/symfony/browser-kit/Client.php \Symfony\Component\BrowserKit\Client::doRequest()
  3. 8 vendor/fabpot/goutte/Goutte/Client.php \Goutte\Client::doRequest()
Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Client.php \Symfony\Component\HttpKernel\Client::doRequest()

Makes a request.

Parameters

Request $request A Request instance:

Return value

Response A Response instance

Overrides Client::doRequest

File

vendor/symfony/http-kernel/Client.php, line 77

Class

Client
Client simulates a browser and makes requests to a Kernel object.

Namespace

Symfony\Component\HttpKernel

Code

protected function doRequest($request) {
  $response = $this->kernel
    ->handle($request);
  if ($this->kernel instanceof TerminableInterface) {
    $this->kernel
      ->terminate($request, $response);
  }
  return $response;
}