Compare commits

...

2 Commits

Author SHA1 Message Date
445774e59a
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
2023-04-20 00:24:31 +02:00
7650b33cd2
make auditlogger optional in persistent data manager
All checks were successful
soko-web/pipeline/pr-master This commit looks good
2023-04-20 00:23:14 +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;