Skip to content

Commit 4dfffd4

Browse files
authored
Merge pull request #799 from utopia-php/upgrade-pools-4.x
2 parents b7720d7 + 406e9d4 commit 4dfffd4

File tree

3 files changed

+27
-25
lines changed

3 files changed

+27
-25
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"ext-mbstring": "*",
4040
"utopia-php/framework": "0.33.*",
4141
"utopia-php/cache": "0.13.*",
42-
"utopia-php/pools": "0.8.*",
42+
"utopia-php/pools": "1.*",
4343
"utopia-php/mongo": "0.11.*"
4444
},
4545
"require-dev": {

composer.lock

Lines changed: 24 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/e2e/Adapter/PoolTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Utopia\Database\Exception\Duplicate;
1515
use Utopia\Database\Exception\Limit;
1616
use Utopia\Database\PDO;
17+
use Utopia\Pools\Adapter\Stack;
1718
use Utopia\Pools\Pool as UtopiaPool;
1819

1920
class PoolTest extends Base
@@ -43,7 +44,7 @@ public function getDatabase(): Database
4344
$redis->flushAll();
4445
$cache = new Cache(new RedisAdapter($redis));
4546

46-
$pool = new UtopiaPool('mysql', 10, function () {
47+
$pool = new UtopiaPool(new Stack(), 'mysql', 10, function () {
4748
$dbHost = 'mysql';
4849
$dbPort = '3307';
4950
$dbUser = 'root';

0 commit comments

Comments
 (0)