File tree Expand file tree Collapse file tree 7 files changed +2
-7
lines changed Expand file tree Collapse file tree 7 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 2
2
3
3
require __DIR__ . '/../vendor/autoload.php ' ;
4
4
5
- use MongoDB \Client ;
6
5
7
6
$ uri = getenv ('MONGODB_URI ' ) ?: throw new RuntimeException (
8
7
'Set the MONGODB_URI environment variable to your Atlas URI ' ,
Original file line number Diff line number Diff line change 1
1
<?php
2
2
require 'vendor/autoload.php ' ;
3
3
4
+ use MongoDB \Client ;
4
5
use MongoDB \Driver \ReadConcern ;
5
6
use MongoDB \Driver \ReadPreference ;
6
7
use MongoDB \Driver \WriteConcern ;
7
- use MongoDB \Client ;
8
8
9
9
// start-client-settings
10
10
$ clientOptions = [
Original file line number Diff line number Diff line change 1
1
<?php
2
2
require 'vendor/autoload.php ' ;
3
3
4
- use MongoDB \BSON \Document ;
5
4
6
5
$ uri = getenv ('MONGODB_URI ' ) ?: throw new RuntimeException ('Set the MONGODB_URI variable to your Atlas URI that connects to the sample dataset ' );
7
6
$ client = new MongoDB \Client ($ uri );
Original file line number Diff line number Diff line change 1
1
<?php
2
2
require 'vendor/autoload.php ' ;
3
3
4
- use MongoDB \BSON \Document ;
5
4
6
5
$ uri = getenv ('MONGODB_URI ' ) ?: throw new RuntimeException ('Set the MONGODB_URI variable to your Atlas URI that connects to the sample dataset ' );
7
6
$ client = new MongoDB \Client ($ uri );
Original file line number Diff line number Diff line change 2
2
3
3
require_once __DIR__ . '/vendor/autoload.php ' ;
4
4
5
- use MongoDB \Client ;
6
5
7
6
$ uri = getenv ('MONGODB_URI ' ) ?: throw new RuntimeException ('Set the MONGODB_URI variable to your Atlas URI that connects to the sample dataset ' );
8
7
$ client = new MongoDB \Client ($ uri );
Original file line number Diff line number Diff line change 1
1
<?php
2
2
require 'vendor/autoload.php ' ;
3
3
4
- use MongoDB \Client ;
5
4
use MongoDB \BSON \ObjectId ;
5
+ use MongoDB \Client ;
6
6
7
7
$ uri = getenv ('MONGODB_URI ' ) ?: throw new RuntimeException ('Set the MONGODB_URI variable to your Atlas URI that connects to the sample dataset ' );
8
8
$ client = new Client ($ uri );
Original file line number Diff line number Diff line change 2
2
3
3
require __DIR__ . '/vendor/autoload.php ' ;
4
4
5
- use MongoDB \Client ;
6
5
7
6
$ uri = getenv ('MONGODB_URI ' ) ?: throw new RuntimeException ('Set the MONGODB_URI variable to your connection URI ' );
8
7
$ client = new MongoDB \Client ($ uri );
You can’t perform that action at this time.
0 commit comments