From 7650b33cd2bafbd2d9ed9f90af6695a6401b95c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Thu, 20 Apr 2023 00:23:14 +0200 Subject: [PATCH] make auditlogger optional in persistent data manager --- src/PersistentData/PersistentDataManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PersistentData/PersistentDataManager.php b/src/PersistentData/PersistentDataManager.php index 9ede090..4388d9f 100644 --- a/src/PersistentData/PersistentDataManager.php +++ b/src/PersistentData/PersistentDataManager.php @@ -13,9 +13,9 @@ class PersistentDataManager implements IPersistentDataManager { private IConnection $dbConnection; - private IAuditLogger $auditLogger; + private ?IAuditLogger $auditLogger; - public function __construct(IConnection $dbConnection, IAuditLogger $auditLogger) + public function __construct(IConnection $dbConnection, ?IAuditLogger $auditLogger = null) { $this->dbConnection = $dbConnection; $this->auditLogger = $auditLogger;