From f0a80426eb4491dfb31c6d010d369056b8a1feb5 Mon Sep 17 00:00:00 2001 From: frytimo Date: Sat, 8 Jun 2024 12:57:33 -0300 Subject: [PATCH] add function to return the config object used to create the database object (#6998) Co-authored-by: Tim Fry --- resources/classes/database.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/resources/classes/database.php b/resources/classes/database.php index f89e9c2bf5..4cc1891059 100644 --- a/resources/classes/database.php +++ b/resources/classes/database.php @@ -452,6 +452,14 @@ } } + /** + * Returns the config object used to create this database object + * @return config Config object + */ + public function config(): config { + return $this->config; + } + /** *

Connect to the database.

*

Database driver must be set before calling connect.