diff --git a/src/Fufle/ORM/Database/Connectors/IConnector.php b/src/Fufle/ORM/Database/Connectors/IConnector.php index 1b63255..02b34e5 100644 --- a/src/Fufle/ORM/Database/Connectors/IConnector.php +++ b/src/Fufle/ORM/Database/Connectors/IConnector.php @@ -7,4 +7,5 @@ use Fufle\ORM\Database\Credentials; interface IConnector { public function getConnectionString(Credentials $credentials); public function driverEquals(string $driver); + public static function Connect(string $host, int $port, string $database, string $user, string $password); } \ No newline at end of file diff --git a/src/Fufle/ORM/Database/Connectors/PostgresConnector.php b/src/Fufle/ORM/Database/Connectors/PostgresConnector.php index 046be98..d5540d1 100644 --- a/src/Fufle/ORM/Database/Connectors/PostgresConnector.php +++ b/src/Fufle/ORM/Database/Connectors/PostgresConnector.php @@ -3,6 +3,7 @@ namespace Fufle\ORM\Database\Connectors; use Fufle\ORM\Database\Credentials; +use Fufle\ORM\Database\ConnectionManager; class PostgresConnector implements IConnector { public function getConnectionString(Credentials $c) {