function TestMiddleware::__construct

Same name and namespace in other branches
  1. 11.x core/modules/system/tests/modules/http_kernel_test/src/HttpKernel/TestMiddleware.php \Drupal\http_kernel_test\HttpKernel\TestMiddleware::__construct()
  2. 10 core/modules/system/tests/modules/http_kernel_test/src/HttpKernel/TestMiddleware.php \Drupal\http_kernel_test\HttpKernel\TestMiddleware::__construct()
  3. 9 core/modules/system/tests/modules/httpkernel_test/src/HttpKernel/TestMiddleware.php \Drupal\httpkernel_test\HttpKernel\TestMiddleware::__construct()
  4. 8.9.x core/modules/system/tests/modules/httpkernel_test/src/HttpKernel/TestMiddleware.php \Drupal\httpkernel_test\HttpKernel\TestMiddleware::__construct()

Constructs a new TestMiddleware object.

Parameters

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

mixed $optionalArgument: (optional) An optional argument.

File

core/modules/system/tests/modules/http_kernel_test/src/HttpKernel/TestMiddleware.php, line 24

Class

TestMiddleware
Provides a test middleware.

Namespace

Drupal\http_kernel_test\HttpKernel

Code

public function __construct(protected HttpKernelInterface $httpKernel, protected $optionalArgument = NULL) {
}

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