Skip to content
This repository was archived by the owner on Dec 1, 2021. It is now read-only.

Commit fdaa349

Browse files
authored
Merge pull request #94 from Nyholm/patch-4
Updated docs of how to configure a client
2 parents 19e5086 + 288e225 commit fdaa349

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,9 @@ $config = \GraphAware\Bolt\Configuration::newInstance()
489489
->withCredentials('bolttest', 'L7n7SfTSj')
490490
->withTLSMode(\GraphAware\Bolt\Configuration::TLSMODE_REQUIRED);
491491
492-
$driver = \GraphAware\Bolt\GraphDatabase::driver('bolt://hodccomjfkgdenl.dbs.gdb.com:24786', $config);
493-
$session = $driver->session();
492+
$client = ClientBuilder::create()
493+
->addConnection('default', 'bolt://hodccomjfkgdenl.dbs.gdb.com:24786', config)
494+
->build();
494495
```
495496

496497
#### HTTP client settings
@@ -509,8 +510,9 @@ $options = [
509510
$httpClient = new Client(null, null, $options);
510511

511512
$config = \GraphAware\Neo4j\Client\HttpDriver\Configuration::create($httpClient);
512-
$driver = \GraphAware\Bolt\GraphDatabase::driver('bolt://hodccomjfkgdenl.dbs.gdb.com:24786', $config);
513-
$session = $driver->session();
513+
$client = ClientBuilder::create()
514+
->addConnection('default', 'http://neo4j:password@localhost:7474', config)
515+
->build();
514516
```
515517

516518
### License

0 commit comments

Comments
 (0)