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

Commit 288e225

Browse files
authored
Updated docs of how to configure a client
1 parent cf77c1c commit 288e225

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
@@ -494,8 +494,9 @@ $config = \GraphAware\Bolt\Configuration::newInstance()
494494
->withCredentials('bolttest', 'L7n7SfTSj')
495495
->withTLSMode(\GraphAware\Bolt\Configuration::TLSMODE_REQUIRED);
496496
497-
$driver = \GraphAware\Bolt\GraphDatabase::driver('bolt://hodccomjfkgdenl.dbs.gdb.com:24786', $config);
498-
$session = $driver->session();
497+
$client = ClientBuilder::create()
498+
->addConnection('default', 'bolt://hodccomjfkgdenl.dbs.gdb.com:24786', config)
499+
->build();
499500
```
500501

501502
#### HTTP client settings
@@ -514,8 +515,9 @@ $options = [
514515
$httpClient = new Client(null, null, $options);
515516

516517
$config = \GraphAware\Neo4j\Client\HttpDriver\Configuration::create($httpClient);
517-
$driver = \GraphAware\Bolt\GraphDatabase::driver('bolt://hodccomjfkgdenl.dbs.gdb.com:24786', $config);
518-
$session = $driver->session();
518+
$client = ClientBuilder::create()
519+
->addConnection('default', 'http://neo4j:password@localhost:7474', config)
520+
->build();
519521
```
520522

521523
### License

0 commit comments

Comments
 (0)