You are here

public function TestHttpKernel::callController in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/symfony/http-kernel/Tests/TestHttpKernel.php \Symfony\Component\HttpKernel\Tests\TestHttpKernel::callController()
  2. 8.0 vendor/symfony/http-kernel/Tests/HttpCache/TestHttpKernel.php \Symfony\Component\HttpKernel\Tests\HttpCache\TestHttpKernel::callController()
Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/Tests/HttpCache/TestHttpKernel.php \Symfony\Component\HttpKernel\Tests\HttpCache\TestHttpKernel::callController()

File

vendor/symfony/http-kernel/Tests/HttpCache/TestHttpKernel.php, line 69

Class

TestHttpKernel

Namespace

Symfony\Component\HttpKernel\Tests\HttpCache

Code

public function callController(Request $request) {
  $this->called = true;
  $response = new Response($this->body, $this->status, $this->headers);
  if (null !== ($customizer = $this->customizer)) {
    $customizer($request, $response);
  }
  return $response;
}