You are here

public function FloodFactory::__construct in Redis 8

Construct the PhpRedis flood backend factory.

Parameters

\Drupal\redis\ClientFactory $client_factory: The database connection which will be used to store the flood event information.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack used to retrieve the current request.

File

src/Flood/FloodFactory.php, line 34

Class

FloodFactory
Flood backend singleton handling.

Namespace

Drupal\redis\Flood

Code

public function __construct(ClientFactory $client_factory, RequestStack $request_stack) {
  $this->clientFactory = $client_factory;
  $this->requestStack = $request_stack;
}