public function Requirements::__construct in MongoDB 8.2
Requirements constructor.
Parameters
\Drupal\Core\Site\Settings $settings: The settings service.
\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The config.factory service.
\Symfony\Component\HttpFoundation\RequestStack $requestStack: The request_stack service.
\Drupal\Component\Serialization\SerializationInterface $serialization: The serialization.yaml service.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.
File
- modules/
mongodb_watchdog/ src/ Install/ Requirements.php, line 81
Class
- Requirements
- Class Requirements implements hook_requirements().
Namespace
Drupal\mongodb_watchdog\InstallCode
public function __construct(Settings $settings, ConfigFactoryInterface $configFactory, RequestStack $requestStack, SerializationInterface $serialization, MessengerInterface $messenger) {
$this->serialization = $serialization;
$this->configFactory = $configFactory;
$this->requestStack = $requestStack;
$this->settings = $settings
->get(MongoDb::MODULE);
$this->messenger = $messenger;
}