You are here

public function TestMiddleware::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 $kernel: The decorated kernel.

mixed $optional_argument: (optional) An optional argument.

File

core/modules/system/tests/modules/httpkernel_test/src/HttpKernel/TestMiddleware.php, line 40
Contains \Drupal\httpkernel_test\HttpKernel\TestMiddleware.

Class

TestMiddleware
Provides a test middleware.

Namespace

Drupal\httpkernel_test\HttpKernel

Code

public function __construct(HttpKernelInterface $kernel, $optional_argument = NULL) {
  $this->kernel = $kernel;
  $this->optionalArgument = $optional_argument;
}