From c3b19996f8cae39839b111a86070c633d9061366 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 27 Apr 2018 15:30:04 +0200 Subject: [PATCH] DbConnection: Introduce method getConfig() refs #2508 --- library/Icinga/Data/Db/DbConnection.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/library/Icinga/Data/Db/DbConnection.php b/library/Icinga/Data/Db/DbConnection.php index d9b6ff19a..f38f6eb75 100644 --- a/library/Icinga/Data/Db/DbConnection.php +++ b/library/Icinga/Data/Db/DbConnection.php @@ -98,6 +98,16 @@ class DbConnection implements Selectable, Extensible, Updatable, Reducible, Insp return $query->getSelectQuery()->query(); } + /** + * Get the connection configuration + * + * @return ConfigObject + */ + public function getConfig() + { + return $this->config; + } + /** * Getter for database type *