mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +00:00
remove exception logic from model
This commit is contained in:
parent
84cc4899d7
commit
04eb93cf27
1 changed files with 25 additions and 38 deletions
|
|
@ -13,8 +13,6 @@ class Database
|
|||
?string $username = null,
|
||||
?string $password = null
|
||||
) {
|
||||
try
|
||||
{
|
||||
$this->_database = new \PDO(
|
||||
sprintf(
|
||||
'sqlite:%s',
|
||||
|
|
@ -45,17 +43,6 @@ class Database
|
|||
');
|
||||
}
|
||||
|
||||
catch (\PDOException $exception)
|
||||
{
|
||||
exit(
|
||||
print_r(
|
||||
$exception->getMessage(),
|
||||
true
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
public function addHistory(
|
||||
string $url,
|
||||
?string $title = null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue