public function MongodbFlood::__construct in MongoDB 8
Construct the DatabaseFileUsageBackend.
Parameters
\Drupal\mongodb\MongoCollectionFactory $mongo: The database connection which will be used to store the flood information.
File
- src/
MongodbFlood.php, line 37 - Definition of Drupal\mongodb\MongodbFlood.
Class
- MongodbFlood
- Defines the mongodb flood backend.
Namespace
Drupal\mongodbCode
public function __construct(MongoCollectionFactory $mongo, RequestStack $request_stack) {
$this->mongo = $mongo;
$this->requestStack = $request_stack;
}