Skip to content

Commit 6d3483a

Browse files
committed
Mongo getHost
1 parent 502d9c4 commit 6d3483a

3 files changed

Lines changed: 20 additions & 12 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"utopia-php/console": "0.1.*",
4242
"utopia-php/cache": "1.*",
4343
"utopia-php/pools": "1.*",
44-
"utopia-php/mongo": "1.*"
44+
"utopia-php/mongo": "dev-get-host as 1.0.3"
4545
},
4646
"require-dev": {
4747
"fakerphp/faker": "1.23.*",

composer.lock

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

src/Database/Adapter/Mongo.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ public function __construct(Client $client)
8080

8181
public function getHostname(): string
8282
{
83-
return 'mongo';
84-
//return $this->client->host; // Private method
83+
return $this->client->getHost();
8584
}
8685

8786
/**

0 commit comments

Comments
 (0)