public function MongoBatchBackend::__construct in MongoDB 8
Construct the DatabaseFileUsageBackend.
Parameters
\Drupal\mongodb\MongoCollectionFactory $mongo: The mongodb collection factory.
File
- src/
MongoBatchBackend.php, line 39 - Contains \Drupal\mongodb\MongoBatchBackend.
Class
Namespace
Drupal\mongodbCode
public function __construct(MongoCollectionFactory $mongo, SessionManagerInterface $session_manager, CsrfTokenGenerator $csrf_token) {
$this->mongo = $mongo;
$this->sessionManager = $session_manager;
$this->csrfToken = $csrf_token;
}