public function FormTestMiddleware::__construct in Drupal 8
Same name and namespace in other branches
- 9 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 26
Class
- FormTestMiddleware
- Provides a test middleware which sets a custom response header.
Namespace
Drupal\form_test\StackMiddlewareCode
public function __construct(HttpKernelInterface $http_kernel) {
$this->httpKernel = $http_kernel;
}