mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
init database constructor
This commit is contained in:
parent
7ac9260ba7
commit
2053ab01de
5 changed files with 71 additions and 5 deletions
|
|
@ -6,6 +6,8 @@ namespace Yggverse\Yoda\Entity;
|
|||
|
||||
class App
|
||||
{
|
||||
public \Yggverse\Yoda\Model\Database $database;
|
||||
|
||||
public \GtkWindow $window;
|
||||
public \GtkHeaderBar $header;
|
||||
public \GtkNotebook $tabs;
|
||||
|
|
@ -17,6 +19,13 @@ class App
|
|||
// Init config
|
||||
$this->config = \Yggverse\Yoda\Model\File::getConfig()->app; // @TODO
|
||||
|
||||
// Init database
|
||||
$this->database = new \Yggverse\Yoda\Model\Database(
|
||||
$this->config->database->name,
|
||||
$this->config->database->username,
|
||||
$this->config->database->password
|
||||
);
|
||||
|
||||
// Init theme
|
||||
$css = new \GtkCssProvider();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue