From cac30c92031bf693f05db30b553b527a110bbcc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Tue, 18 Apr 2023 23:35:17 +0200 Subject: [PATCH] add auditLogger instance to app container --- app.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.php b/app.php index f3a2309..d73a4f2 100644 --- a/app.php +++ b/app.php @@ -15,9 +15,11 @@ $dotenv->load(); class Container { static SokoWeb\Interfaces\Database\IConnection $dbConnection; + static SokoWeb\Interfaces\Database\IAuditLogger $auditLogger; static SokoWeb\Routing\RouteCollection $routeCollection; static SokoWeb\Interfaces\Session\ISessionHandler $sessionHandler; static SokoWeb\Interfaces\Request\IRequest $request; } Container::$dbConnection = new SokoWeb\Database\Mysql\Connection($_ENV['DB_HOST'], $_ENV['DB_USER'], $_ENV['DB_PASSWORD'], $_ENV['DB_NAME']); +Container::$auditLogger = new RVR\Database\AuditLogger(Container::$dbConnection, 'audit_log');