You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -171,7 +171,7 @@ as received data from database.
171
171
$conn = new \Bolt\connection\Socket('127.0.0.1', 7687);
172
172
// Create new Bolt instance and provide connection object.
173
173
$bolt = new \Bolt\Bolt($conn);
174
-
// Set requested protocol versions ..you can add up to 4 versions
174
+
// If needed set requested protocol versions ..you can add up to 4 versions
175
175
$bolt->setProtocolVersions(5.4);
176
176
// Build and get protocol version instance which creates connection and executes handshake.
177
177
$protocol = $bolt->build();
@@ -198,7 +198,7 @@ foreach ($protocol->getResponses() as $response) {
198
198
}
199
199
```
200
200
201
-
:information_source: Default settings for bolt protocol version is 4.3, 4.4 and 5.0 to 5.8. If you are within this list you can ommit calling `$bolt->setProtocolVersions(5.4);`.
201
+
:information_source: Default settings for bolt protocol version is 4.3, 4.4 and 5.0 to 5.8. If you are within this list you can ommit calling `$bolt->setProtocolVersions();`.
202
202
203
203
### Autoload
204
204
@@ -231,20 +231,20 @@ This class extends StreamSocket and adds support for persistent connections. Upo
231
231
232
232
## :lock: SSL
233
233
234
+
Connection secured with SSL is available only with connection classes `StreamSocket` and `PStreamSocket`.
235
+
234
236
### Neo4j Aura
235
237
236
-
Connecting to Aura requires encryption which is provided with SSL. To connect to Aura you have to use `StreamSocket`connection class and enable SSL.
238
+
Connecting to Aura requires encrypted connection by default. To connect to Aura you have to use connection class with SSL support and enable SSL.
237
239
238
240
```php
239
241
$conn = new \Bolt\connection\StreamSocket('helloworld.databases.neo4j.io');
240
242
// enable SSL
241
-
$conn->setSslContextOptions([
242
-
'verify_peer' => true
243
-
]);
243
+
$conn->setSslContextOptions();
244
244
$bolt = new \Bolt\Bolt($conn);
245
245
```
246
246
247
-
https://www.php.net/manual/en/context.ssl.php
247
+
_For more informations about what argument can be passed to `setSslContextOptions` check out [php.net](https://www.php.net/manual/en/context.ssl.php)_
248
248
249
249
### Example on localhost database with self-signed certificate:
0 commit comments