make auditlogger optional in persistent data manager #12

Merged
bence merged 1 commits from bugfix/make-auditlogger-optional into master 2023-04-20 00:24:31 +02:00

View File

@ -13,9 +13,9 @@ class PersistentDataManager implements IPersistentDataManager
{ {
private IConnection $dbConnection; 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->dbConnection = $dbConnection;
$this->auditLogger = $auditLogger; $this->auditLogger = $auditLogger;