Merge pull request 'make auditlogger optional in persistent data manager' (#12) from bugfix/make-auditlogger-optional into master
All checks were successful
soko-web/pipeline/head This commit looks good

Reviewed-on: #12
This commit is contained in:
Bence Pőcze 2023-04-20 00:24:31 +02:00
commit 445774e59a
Signed by: Gitea
GPG Key ID: 7B89B83EED9AD2C6

View File

@ -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;