From cf246ee53d343a63be740bc1e5ca96765be546c5 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 27 Jun 2024 16:56:03 +0300 Subject: [PATCH] add optional config filename to the app constructor --- src/Entity/App.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Entity/App.php b/src/Entity/App.php index 652107db..d85b3ebe 100644 --- a/src/Entity/App.php +++ b/src/Entity/App.php @@ -15,10 +15,13 @@ class App public \GtkHeaderBar $header; public \GtkNotebook $tabs; - public function __construct() - { + public function __construct( + ?string $config = null + ) { // Init config - $this->config = new \Yggverse\Yoda\Model\Config; + $this->config = new \Yggverse\Yoda\Model\Config( + $config + ); // Init database $this->database = new \Yggverse\Yoda\Model\Database(