mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Use adapter instead of connection
This commit is contained in:
@@ -27,6 +27,7 @@ use Utopia\Cache\Adapter\Sharding;
|
||||
use Utopia\Cache\Cache;
|
||||
use Utopia\CLI\Console;
|
||||
use Utopia\Config\Config;
|
||||
use Utopia\Database\Adapter;
|
||||
use Utopia\Database\Database;
|
||||
use Utopia\Database\Document;
|
||||
use Utopia\Database\Helpers\ID;
|
||||
@@ -375,9 +376,7 @@ App::setResource('useProjectDB', function (Group $pools, Database $dbForPlatform
|
||||
|
||||
return $pools
|
||||
->get($dsn->getHost())
|
||||
->use(function (Connection $connection) use ($callback, $cache, $project, $dsn) {
|
||||
$adapter = $connection->getResource();
|
||||
|
||||
->use(function (Adapter $adapter) use ($callback, $cache, $project, $dsn) {
|
||||
$database = new Database($adapter, $cache);
|
||||
|
||||
$database
|
||||
|
||||
Reference in New Issue
Block a user