Browse Source

add optional config filename to the app constructor

PHP-GTK3
yggverse 5 months ago
parent
commit
cf246ee53d
  1. 9
      src/Entity/App.php

9
src/Entity/App.php

@ -15,10 +15,13 @@ class App
public \GtkHeaderBar $header; public \GtkHeaderBar $header;
public \GtkNotebook $tabs; public \GtkNotebook $tabs;
public function __construct() public function __construct(
{ ?string $config = null
) {
// Init config // Init config
$this->config = new \Yggverse\Yoda\Model\Config; $this->config = new \Yggverse\Yoda\Model\Config(
$config
);
// Init database // Init database
$this->database = new \Yggverse\Yoda\Model\Database( $this->database = new \Yggverse\Yoda\Model\Database(

Loading…
Cancel
Save