make auditlogger optional in persistent data manager
All checks were successful
soko-web/pipeline/pr-master This commit looks good

This commit is contained in:
Bence Pőcze 2023-04-20 00:23:14 +02:00
parent 5e0579463c
commit 7650b33cd2
Signed by: bence
GPG Key ID: DC5BD6E95A333E6D

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;