function TestWaitTerminateMiddleware::__construct

Constructs a test wait terminate stack middleware object.

Parameters

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

\Drupal\Core\Lock\LockBackendInterface $lock: The lock backend.

bool $waitForTerminate: Container parameter to toggle this behavior.

File

core/lib/Drupal/Core/Test/StackMiddleware/TestWaitTerminateMiddleware.php, line 25

Class

TestWaitTerminateMiddleware
Acquire a lock to signal request termination to the test runner.

Namespace

Drupal\Core\Test\StackMiddleware

Code

public function __construct(protected HttpKernelInterface $httpKernel, protected LockBackendInterface $lock, protected bool $waitForTerminate = FALSE) {
}

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