public function TestHttpKernel::callController

Same name in this branch
  1. 9.x drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/TestHttpKernel.php \Symfony\Component\HttpKernel\Tests\TestHttpKernel::callController()
  2. 9.x drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/TestHttpKernel.php \Symfony\Component\HttpKernel\Tests\HttpCache\TestHttpKernel::callController()

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/HttpCache/TestHttpKernel.php, line 64

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 !== $this->customizer) {
    call_user_func($this->customizer, $request, $response);
  }
  return $response;
}