mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
add optional config filename to the app constructor
This commit is contained in:
parent
338cb5fa1f
commit
cf246ee53d
1 changed files with 6 additions and 3 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue