public function MemoryBackend::__construct

Same name in this branch
  1. 8.x drupal/core/lib/Drupal/Core/Flood/MemoryBackend.php \Drupal\Core\Flood\MemoryBackend::__construct()
  2. 8.x drupal/core/lib/Drupal/Core/Cache/MemoryBackend.php \Drupal\Core\Cache\MemoryBackend::__construct()

Construct the MemoryBackend.

Parameters

\Symfony\Component\HttpFoundation\Request $request: The HttpRequest object representing the current request.

File

drupal/core/lib/Drupal/Core/Flood/MemoryBackend.php, line 35
Definition of Drupal\Core\Flood\MemoryBackend.

Class

MemoryBackend
Defines the memory flood backend. This is used for testing.

Namespace

Drupal\Core\Flood

Code

public function __construct(Request $request) {
  $this->request = $request;
}