From 7fc637bb31e4ecb1be8fb4b9fde1e9055048a8e0 Mon Sep 17 00:00:00 2001
From: Jan-Hendrik Willms <tleilax+studip@gmail.com>
Date: Wed, 26 Oct 2022 08:55:00 +0000
Subject: [PATCH] add db and cache to definitions, re #1684

Merge request studip/studip!1116
---
 lib/bootstrap-definitions.php | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/bootstrap-definitions.php b/lib/bootstrap-definitions.php
index 3acb0261dd8..1b0fbc2cf0d 100644
--- a/lib/bootstrap-definitions.php
+++ b/lib/bootstrap-definitions.php
@@ -13,4 +13,10 @@ return [
             ),
         ]);
     }),
+    StudipCache::class => DI\factory(function () {
+        return StudipCacheFactory::getCache();
+    }),
+    StudipPDO::class => DI\factory(function () {
+        return DBManager::get();
+    }),
 ];
-- 
GitLab