public function MemoryBackend::__construct
public MemoryBackend::__construct(RequestStack$request_stack)
Construct the MemoryBackend.
Parameters
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack used to retrieve the current request.
File
- core/lib/Drupal/Core/Flood/MemoryBackend.php, line 30
Class
- MemoryBackend
- Defines the memory flood backend. This is used for testing.
Namespace
Drupal\Core\FloodCode
public function __construct(RequestStack $request_stack) { $this->requestStack = $request_stack; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Flood!MemoryBackend.php/function/MemoryBackend::__construct/8.1.x