Skip to content

Commit b6088f8

Browse files
committed
feedback
1 parent db5a290 commit b6088f8

File tree

2 files changed

+2
-20
lines changed

2 files changed

+2
-20
lines changed

source/connect/connection-options.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ the connection URI sets the ``tls`` option to ``true`` and the
4444
:copyable: true
4545
:start-after: // start-connection-uri
4646
:end-before: // end-connection-uri
47-
:emphasize-lines: 4, 7
47+
:emphasize-lines: 2,5
4848

4949
.. _php-client-object:
5050

@@ -64,7 +64,7 @@ The following example shows how to use the ``$uriOptions`` parameter of the
6464
:copyable: true
6565
:start-after: // start-client-options
6666
:end-before: // end-client-options
67-
:emphasize-lines: 7-10, 13
67+
:emphasize-lines: 2, 5-8, 11
6868

6969
.. note::
7070

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
// start-connection-uri
2-
<?php
3-
42
// Replace the placeholders with your actual hostname, port, and path to the certificate key file
53
$uri = "mongodb://<hostname>:<port>/?tls=true&tlsCertificateKeyFile=/path/to/file.pem";
64

@@ -9,8 +7,6 @@
97
// end-connection-uri
108

119
// start-client-options
12-
<?php
13-
1410
// Replace the placeholders with your actual hostname and port
1511
$uri = "mongodb://<hostname>:<port>/";
1612

@@ -23,17 +19,3 @@
2319
// Create a MongoDB client with the URI and options
2420
$client = new Client($uri, $uriOptions);
2521
// end-client-options
26-
27-
// start-uri-object
28-
#include <mongocxx/uri.hpp>
29-
#include <mongocxx/client.hpp>
30-
#include <mongocxx/instance.hpp>
31-
32-
int main()
33-
{
34-
mongocxx::instance instance;
35-
mongocxx::uri uri("mongodb://<hostname>:<port>/?tls=true");
36-
mongocxx::client client(uri);
37-
auto is_tls_enabled = uri.tls();
38-
}
39-
// end-uri-object

0 commit comments

Comments
 (0)