function FormTestMiddleware::__construct

Same name in other branches
  1. 8.9.x core/modules/system/tests/modules/form_test/src/StackMiddleware/FormTestMiddleware.php \Drupal\form_test\StackMiddleware\FormTestMiddleware::__construct()
  2. 10 core/modules/system/tests/modules/form_test/src/StackMiddleware/FormTestMiddleware.php \Drupal\form_test\StackMiddleware\FormTestMiddleware::__construct()
  3. 11.x core/modules/system/tests/modules/form_test/src/StackMiddleware/FormTestMiddleware.php \Drupal\form_test\StackMiddleware\FormTestMiddleware::__construct()

Constructs a FormTestMiddleware object.

Parameters

\Symfony\Component\HttpKernel\HttpKernelInterface $http_kernel: The decorated kernel.

File

core/modules/system/tests/modules/form_test/src/StackMiddleware/FormTestMiddleware.php, line 27

Class

FormTestMiddleware
Provides a test middleware which sets a custom response header.

Namespace

Drupal\form_test\StackMiddleware

Code

public function __construct(HttpKernelInterface $http_kernel) {
    $this->httpKernel = $http_kernel;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.