This commit is contained in:
shimon 2024-09-17 21:09:16 +03:00
parent fd8b7eb6fc
commit eb553fa96c

View file

@ -108,6 +108,10 @@ class Database extends Event
*/
public function trigger(): string|bool
{
var_dump('database=');
var_dump($this->getProject()->getAttribute('database'));
try {
$dsn = new DSN($this->getProject()->getAttribute('database'));
} catch (\InvalidArgumentException) {
@ -115,6 +119,9 @@ class Database extends Event
$dsn = new DSN('mysql://' . $this->getProject()->getAttribute('database'));
}
var_dump('$dsn->getHost()=');
var_dump($dsn->getHost());
$this->setQueue($dsn->getHost());
$client = new Client($this->queue, $this->connection);