public function ClientFactory::__construct in MongoDB 8.2
Constructor.
Parameters
\Drupal\Core\Site\Settings $settings: The system settings.
File
- modules/
mongodb/ src/ ClientFactory.php, line 35
Class
- ClientFactory
- Helper class to construct a MongoDB client with Drupal specific config.
Namespace
Drupal\mongodbCode
public function __construct(Settings $settings) {
$this->settings = $settings
->get(MongoDb::MODULE)['clients'];
}