瀏覽代碼

add function to return the config object used to create the database object (#6998)

Co-authored-by: Tim Fry <[email protected]>
frytimo 1 年之前
父節點
當前提交
f28926778e
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      resources/classes/database.php

+ 8 - 0
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;
+			}
+
 			/**
 			 * <p>Connect to the database.</p>
 			 * <p>Database driver must be set before calling connect.</p>